• 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!

Teleport Script

Don Shotta

Well-Known Member
Joined
Jun 29, 2008
Messages
2,936
Reaction score
87
Location
England
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 :D

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
 
Back
Top Bottom