slaw
Software Developer
I have made script. When player want go he must have in left hand a shovel.
Its my code:
I can't understand what i have wrong in this? Always when i try to go i have: "Put in your left hand a shovel.
I think function GetPlayerSlotItem doesn't work on TFS.
Its my code:
Code:
if item.actionid == 3602 then
if isPlayer(cid) == TRUE then
pozzzycja = {x=53, y=29, z=8}
lewareka = getPlayerSlotItem(cid, 6)
if lewareka == 2554 then
doTeleportThing(cid, pozzzycja, FALSE)
else
pozzycja = {x=56, y=36, z=8}
doTeleportThing(cid, pozzycja, FALSE)
doPlayerSendCancel(cid, 'Put in your left hand a shovel.')
end
else
doTeleportThing(cid, pozzycja, FALSE)
end
end
I can't understand what i have wrong in this? Always when i try to go i have: "Put in your left hand a shovel.
I think function GetPlayerSlotItem doesn't work on TFS.