copie qualquer arquivo no talkation/scrip e renomeie para "ban" e cole isso
function onSay(cid, words, param)
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return TRUE
end
local pid = getPlayerByNameWildcard(param)
local tmp = getPlayerIp(pid)
if(doAddIpBanishment(tmp) or pid == 0 or (isPlayerGhost(pid) == TRUE)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.")
end
if isPlayerGhost(pid) == FALSE then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, getCreatureName(pid) .. " has been banned.")
doAddIpBanishment(tmp, 7 * 24 * 60 * 60)
doRemoveCreature(pid)
end
return TRUE
end
info
Grupo: Campones
Registrado: 09/06/11
Posts: 6
Reputação: 0
copie qualquer arquivo no talkation/scrip e renomeie para "ban" e cole isso
depois vai talkation.xml adicione esse tag