Tenta adicionar isto, eu acho que esqueci
Vai em ( Data\Creaturescript\scripts )Crie um arquivo chamado vip.lua .
Dentro do Arquivo ponha isto.
function onLogin(cid)
local pos = {x=xxxx, y=xxxx, z=x}
pos = {x=xxxx, y=xxxx, z=x}
if vip.hasVip(cid) == TRUE then
if getPlayerStorageValue(cid,55555) ~= 1 then
setPlayerStorageValue(cid,55555,1)
end
elseif vip.hasVip(cid) ~= TRUE and vip.getVip(cid) ~= 0 then
if getPlayerStorageValue(cid,55555) == 1 then
doTeleportThing(cid, pos, TRUE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your VIP's over!")
doPlayerSendTextMessage(cid,22,"Your VIP's over!")
setPlayerPromotionLevel(cid, 1)
setPlayerStorageValue(cid,55555,2)
elseif getPlayerStorageValue(cid,55555) == -1 then
setPlayerStorageValue(cid,55555,2)
end
end
return TRUE
end
Depois vá em ( Data\creaturescript )abra o Creaturescript.xml e adicione:
<event type="login" name="FimVip" event="script" value="vip.lua"/>
Depois voute ao ( data\creaturescript\script ) abra login.lua e adicione la:
registerCreatureEvent(cid, "FimVip")
La em:
local pos = {x=xxxx, y=xxxx, z=x}
pos = {x=xxxx, y=xxxx, z=x}
Mude os xxxx pela posição para aonde o player vai quando a vip acabar.
Testa ai qualquer coisa tamo aew!