Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onSay(cid, words, param)
- local barid = 9971 -- ID das barras para desbanir
- local a = {
- [1] = 20,
- [2] = 40,
- [3] = 60,
- [4] = 90,
- [5] = 120,
- [6] = 150,
- [7] = 250,
- [8] = 350,
- [9] = 500,
- [10] = 750,
- [11] = 999,
- }
- b = a[getWarnings(param)]
- if not param then
- doPlayerSendCancel(cid, "Incorrect params.") return true
- elseif not getPlayerGUIDByName(param) then
- doPlayerSendCancel(cid, "O jogador "..param.." não existe.") return true
- elseif not isAccountBanished(getAccountIdByName(param)) then
- doPlayerSendCancel(cid, "Esse jogador não está banido.") return true
- elseif not doPlayerRemoveItem(cid, barid, b) then
- doPlayerSendCancel(cid, "Você deve ter "..b.." gold ingots para desbanir esse jogador.") return true
- end
- doRemoveAccountBanishment(getAccountIdByName(param))
- doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você desbaniu o jogador "..param.." pelo preço de "..b.." gold ingots.")
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement