onLogin function (cid)
isPremium if (cid) then
else
doTeleportThing(cid,getPlayerMasterPos(cid))
doPlayerSendTextMessage(cid,MESSAGE_FIRST,'You got teleported to temple, as your premium has expired.')
doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT)
end
<event type="login" name="PremmyOver" script="premmy_over.lua">
if isPremium(cid) then
setPlayerStorageValue(cid, 100, 1)
elseif getPlayerStorageValue(cid, 100) == 1 then
doTeleportThing(cid, getTownTemplePosition(1))
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'Your premium time expired.')
end