Postado Julho 20, 2018 6 anos Solução function onLogin(cid) local house = getHouseByPlayerGUID(getPlayerGUID(cid)) local pos = {x=32369, y=32241, z=7} -- pos onde será teleportado if isPremium(cid) and getPlayerStorageValue(cid, 548474) <= 0 then setPlayerStorageValue(cid, 548474, 1) elseif not isPremium(cid) and getPlayerStorageValue(cid, 548474) > 0 then doPlayerSendTextMessage(cid, 22, "seu premium acabou") doCreatureChangeOutfit(cid,{lookType = getPlayerSex(cid) == 0 and 136 or 128}) if house then setHouseOwner(house,NO_OWNER_PHRASE,true) end doTeleportThing(cid, pos) setPlayerStorageValue(cid, 548474, 0) end return true end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.