How do I achieve this? When someone pulls a lever I wanna check if a player is standing on a certain position on the map. I'm drawing a blank here.
I thought this would would work, but it dont.
Any ideas?
I thought this would would work, but it dont.
Any ideas?
Code:
function onUse(cid, item)
local playerCheck = getThingFromPos({x=32854, y=32326, z=8, stackpos=253})
if item.itemid == 1945 and isPlayer(playerCheck) then
doPlayerSendTextMessage(cid, 22, "Someone is standing on the tile :)")
else
doPlayerSendTextMessage(cid, 22, "Theres no one standing on the special tile :(")
end
end