someone who can help me with this script the problem is that teleports the player to have never had premium, which does not have to be this way, only those who bought and their premium finaliso devrian be teleported them, I think the problem is lso storage if anyone can help.
I leave the scrips here
I leave the scrips here
HTML:
if getPlayerPremiumDays(cid) < 1 then
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