i want vip tile to teleport a vip player to a location but ive tried to fix it but without succeful
i have 049-vipsys on lib. aswel..
how do i get it to work anyone?
im using vip_time on database
--function by Frankit0--
local newposition = {x=9999, y=9999, z=9} --Place where the player will be teleported IF VIP, change it.
if getVipByAccount(cid) >= 1 then
if(getCreatureStorage(cid,11551) >= 0) then
doPlayerSendTextMessage(cid, 19, "You are VIP, you are allowed to pass.")
doSendMagicEffect(getThingPosition(cid),2)
doTeleportThing(cid, newposition, true)
doSendMagicEffect(newposition,10)
else
doPlayerSendTextMessage(cid, 19, "You are not VIP, you can't pass.")
doTeleportThing(cid, frompos, true)
end
return true
end
i have 049-vipsys on lib. aswel..
how do i get it to work anyone?
im using vip_time on database
--function by Frankit0--
local newposition = {x=9999, y=9999, z=9} --Place where the player will be teleported IF VIP, change it.
if getVipByAccount(cid) >= 1 then
if(getCreatureStorage(cid,11551) >= 0) then
doPlayerSendTextMessage(cid, 19, "You are VIP, you are allowed to pass.")
doSendMagicEffect(getThingPosition(cid),2)
doTeleportThing(cid, newposition, true)
doSendMagicEffect(newposition,10)
else
doPlayerSendTextMessage(cid, 19, "You are not VIP, you can't pass.")
doTeleportThing(cid, frompos, true)
end
return true
end