Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onLogin(cid)
- if isPremium(cid) and getPlayerStorageValue(cid, 2143190718) == -1 then
- setPlayerStorageValue(cid, 2143190718, 1)
- end
- local house = getHouseByPlayerGUID(getPlayerGUID(cid))
- local pos = {x=32369, y=32241, z=7} -- pos onde será teleportado
- if not isPremium(cid) and getPlayerStorageValue(cid, 2143190718) == 1 then
- doPlayerSendTextMessage(cid, 22, "Your premium time expired. If you had a house it was removed and items are on depot from your house.")
- doCreatureChangeOutfit(cid, {lookType = 128, lookHead = 78, lookBody = 69, lookLegs = 58, lookFeet = 76})
- if getHouseByPlayerGUID(getPlayerGUID(cid)) ~= nil then
- setHouseOwner(house, 0)
- end
- doTeleportThing(cid, pos)
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement