Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- local name = getPlayerName(cid)
- local skey = getPlayerStorageValue(cid)
- if skey ~= 2107201401 then
- setPlayerStorageValue(cid, 2107201401, 1)
- if(not isPlayerGhost(cid)) then
- local tname = getTownName(townId)
- doPlayerSendTextMessage(cid, 22, "Voce foi registrado como morador oficial de " .. tname .. ", agora pode viajar para outras cidades sem pagar. Obrigado e boa sote " .. name .. "!")
- if (getPlayerGroupId(cid) <= 3) and isPlayer(cid) then
- sexstatus = getPlayerSex(cid)
- if sexstatus == 0 then
- doPlayerAddOutfit(cid, 136, 1)
- else
- doPlayerAddOutfit(cid, 128, 1)
- end
- else
- doPlayerSendTextMessage(cid, 22, "GMs e GODs nao podem ser cadastrados.")
- end
- else
- doPlayerSendTextMessage(cid, 22, "Como posso saber onde um player invisivel mora?")
- end
- else
- doPlayerSendTextMessage(cid, 22, "Voce ja esta cadastrado!")
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment