Vá ate creaturescripts/scripts/ e crie um arquivo chamado fimpremium.lua , e bote isso :
function onLogin(cid)
registerCreatureEvent(cid,"FimPremium")
local pos = {x = 123, y = 123, z = 7}
if isPremium(cid) then
setPlayerStorageValue(cid, 9899, 1)
elseif getPlayerStorageValue(cid, 9899) == 1 and not isPremium(cid) then
doTeleportThing(cid, pos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You premium is Over!")
setPlayerStorageValue(cid, 9899, -1)
end
return 1
end
* Edite a posição do templo da sua cidade Principal em :
local pos = {x = 123, y = 123, z = 7}
* E a mensagem ao terminar a Premium em:
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You premium is Over!")
Adicione essa tag em creaturescripts.xml
<event type="login" name="FimPremium" event="script" value="fimpremium.lua"/>
AJUDOU ? REP+