Ir para conteúdo

Posts Recomendados

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

Link para o comentário
https://xtibia.com/forum/topic/157006-pedido-talk-ban/#findComment-1036620
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...