• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

create items

mmheo

New Member
Joined
Sep 14, 2017
Messages
157
Reaction score
1
hello guys how i can make if player stand on items and use this items create other items
how?? if player position = items position create other items in same position under the player
tfs 0.4

sorry for my bad english
 
Just 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
 
Last edited:
Just 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
no bro i need if player stand on items xxxx and use same items create new items
 
Edit this to suit your needs.
Lua:
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
 
no need specific location if player use x items when stepin x items create new items
if player used items under him create x items must be under him
 
Last edited:
if player in x area and use the ground must use the ground under him
create box under him
 
Last edited:
Back
Top