function onStepIn(cid, item, position, fromPosition)
if not isPlayer(cid) then
return true
end
doCreateItem(youritemid,1,position)
return true
end
no bro i need if player stand on items xxxx and use same items create new itemsJust one item onStepIn? or keeps creating as long as the players is standing on that SQM?
it can be something simple like this, You can edit it to put a message or what ever you want.
LUA:function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end doCreateItem(youritemid,1,position) return true end
function onUse(cid, item, fromPosition, itemEx, toPosition)
local PlayerPos = {x = 0, y = 0, z = 0}
if getPlayerPosition(cid) == PlayerPos then
doCreateItem(youritemid,1,PlayerPos)
end
return true
end