AT

[Pedido] Talk /ban

Por atakashi, 20 de mai. de 2011 em Archived

2
569
atakashiA
20 de maio de 2011 às 22:18

Oi Galera, to com um ot 8.7 , a mizeria do ot naum tem a parada de banir o char pelo report violation acho que e isso algo assim, i naum tem comando de dar ban tbm.

alguem sabe um ai , ou poderia me fornecer ? Vlws.

20 de maio de 2011 às 22:34

O script tava jogado aki no ot entao ta aew '-'

function onSay(cid, words, param, channel)


       local t = param:explode(",")
       local name, days = t[1], tonumber(t[2])  
                       if name then
                       if days then 
local acc = getAccountIdByName(name)
if acc ~= 0 then
local tempo = days * 24 * 3600 
       doAddAccountBanishment(acc, target, os.time() + tempo, 5, 2, 'You are Banned.', 0)

                                      else
                                       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This player not exist.")
                               end
                       else
                               doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Not allowed for dias of banishment.")
                       end
       else
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This player not exist.")
       end
return true
end