tenta assim
function onSay(cid, words, param)
local t = string.explode(string.lower(param), ",")
if not t[1] then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.") return true
end
local player = getPlayerByNameWildcard(t[1])
if(not player)then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player not found.") return true
end
local hours,comment = not tonumber(t[2]) and 24 or tonumber(t[2]),not t[3] and "No Reason" or t[3]
doBroadcastMessage(getCreatureName(player).." was banned by "..getCreatureName(cid)..": "..comment)
doAddAccountBanishment(getPlayerAccountId(player), target, os.time() + hours*3600, 5, 2,comment, 0)
doRemoveCreature(player)
return true
end




info
Grupo: Marquês
Registrado: 22/07/12
Posts: 1.1k
Reputação: +400
Gênero: Masculino
Char no Tibia: Luck Oake
Olá povo.
Tô precisando de uma ajuda na função doAddPlayerBanishment, quero saber como ela funciona.
Seguinte, vejam esse trecho de script:
Era pra ela banir o player e removê-lo, mas ela só remove, não tá banindo, pois o player consegue logar novamente.
E então, alguém pode dar uma luz ai?
Editado Novembro 3 por LuckOake