function onLogin(cid)
registerCreatureEvent(cid,"EndPremium")
local pos = {x = 32369, y = 32237, z = 7}
local female = 136
local male = 128
local outfit = getCreatureOutfit(cid)
local lookType = outfit.lookType
if isPremium(cid) then
setPlayerStorageValue(cid, 9899, 1)
elseif getPlayerStorageValue(cid, 9899) == 1 and not isPremium(cid) then
doTeleportThing(cid, pos)
if getPlayerSex(cid) == 0 then
doCreatureChangeOutfit(cid, {lookType = female, lookHead = outfit.lookHead, lookBody = outfit.lookBody, lookLegs = outfit.lookLegs, lookFeet = outfit.lookFeet})
else
doCreatureChangeOutfit(cid, {lookType = male, lookHead = outfit.lookHead, lookBody = outfit.lookBody, lookLegs = outfit.lookLegs, lookFeet = outfit.lookFeet})
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua premium acabou!")
setPlayerStorageValue(cid, 9899, -1)
end
return TRUE
end