Advertisement
Kaiquegabriel

Untitled

Jul 19th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. function onLogin(cid)
  2. if isPremium(cid) and getPlayerStorageValue(cid, 2143190718) == -1 then
  3. setPlayerStorageValue(cid, 2143190718, 1)
  4. end
  5. local house = getHouseByPlayerGUID(getPlayerGUID(cid))
  6. local pos = {x=32369, y=32241, z=7} -- pos onde será teleportado
  7. if not isPremium(cid) and getPlayerStorageValue(cid, 2143190718) == 1 then
  8. doPlayerSendTextMessage(cid, 22, "Your premium time expired. If you had a house it was removed and items are on depot from your house.")
  9. doCreatureChangeOutfit(cid, {lookType = 128, lookHead = 78, lookBody = 69, lookLegs = 58, lookFeet = 76})
  10. if getHouseByPlayerGUID(getPlayerGUID(cid)) ~= nil then
  11. setHouseOwner(house, 0)
  12. end
  13. doTeleportThing(cid, pos)
  14. end
  15. return true
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement