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 = 3 ---change it to the acces that you need to use the comand.
function onSay(cid, words, param)
if getCreatureCondition(cid, CONDITION_INFIGHT) == 0 then
if getPlayerAccess(cid) >= naccess then
newpos = {
["depot"] = {x=1029, y=996, z=7},
["enigma"] = {x=1000, y=1000, z=7},
["dragon"] = {x=980, y=1117, z=7},
["back"] = { x = getPlayerStorageValue(cid, storage), y = getPlayerStorageValue(cid, storage+1), z = getPlayerStorageValue(cid, storage+2)}}
----------------------------------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
end
-----------------------By Nahruto--------------------------