local ACTION_ID = 1234 -- teleport actionId
local storage = 4545 -- VIP storage
local k = item.actionid == ACTION_ID
if(k and getCreatureStorage(cid, storage) < 0) then
doTeleportThing(cid, fromPosition, true)
doSendMagicEffect(fromPosition, CONST_ME_TELEPORT)
doCreatureSay(cid, "VIP only.", TALKTYPE_MONSTER)
end
vip tp?
explain it better, what you want?
You didn't search hard enough. Add this to your "citizen.lua" script:
Set the destination to the TP in the map editor and this will work.LUA:local ACTION_ID = 1234 -- teleport actionId local storage = 4545 -- VIP storage local k = item.actionid == ACTION_ID if(k and getCreatureStorage(cid, storage) < 0) then doTeleportThing(cid, fromPosition, true) doSendMagicEffect(fromPosition, CONST_ME_TELEPORT) doCreatureSay(cid, "VIP only.", TALKTYPE_MONSTER) end
I got a VIP system with storageid 20500. And when you have VIP should you be able to teleport to a vip city, and if not right storageid -> back to the temple
- - - Updated - - -
Thanks alot J-Dre!![]()