Don Shotta
Well-Known Member
Hello i have this script but dont know if its right but if it is can you add that you cant teleport if pz.
Thanks.
Rep++ who does
Thanks.
Rep++ who does
Code:
local storage = 1900 ---Here Will save the save point, if you set it to 1900 make you sure you dont have use the storages 1900,1901 and 1902
local naccess = 1 ---change it to the acces that you need to use the comand.
function onSay(cid, words, param)
if getPlayerAccess(cid) >= naccess then
newpos = {
["1337 temple"] = {x=846, y=696, z=7},
}
----------------------------------End Config--------------------------------------------------------------------------------
npos = newpos[param]
setPlayerStorageValue(cid, storage, getPlayerPosition(cid).x)
setPlayerStorageValue(cid, storage+1, getPlayerPosition(cid).y)
setPlayerStorageValue(cid, storage+2, getPlayerPosition(cid).z)
doTeleportThing(cid, npos)
doSendMagicEffect(npos, 10)
end
end