Okay i need help with making a script! i need to make a talkaction script that teleports me. so for example!!!!
local standPos = {x=585,y=937,z=7} local newPos = {x=584,y=887,z=7} function onSay(cid, param) if comparePos(getPlayerPosition(cid), standPos) then doSendMagicEffect(getPlayerPosition(cid), 2) doTeleportThing(cid, newPos) doSendMagicEffect(newPos, 10) end return 1 end
if ur standing in a spot and say certain words you get teleported by the positions specified. now i tried this script but it wont work... can anyone help me!?
local standPos = {x=585,y=937,z=7} local newPos = {x=584,y=887,z=7} function onSay(cid, param) if comparePos(getPlayerPosition(cid), standPos) then doSendMagicEffect(getPlayerPosition(cid), 2) doTeleportThing(cid, newPos) doSendMagicEffect(newPos, 10) end return 1 end
if ur standing in a spot and say certain words you get teleported by the positions specified. now i tried this script but it wont work... can anyone help me!?