Hi.. First all sorry for my English is suck I only speak spanish
my ot server no have rule of violation soo i have one script for ban.
my scrpit only ban player "doplayeraddbanish" so need scrits wht ban ipp too ok somebody help me make plz.. my scrpts is the next
all really ty
my ot server no have rule of violation soo i have one script for ban.
my scrpit only ban player "doplayeraddbanish" so need scrits wht ban ipp too ok somebody help me make plz.. my scrpts is the next
PHP:
local Comentario = "Baniado POR SER BASURA Y PARASITO."
function onSay(cid, words, param)
if getPlayerAccess(cid) >= 4 then
if #param > 0 then
local data = string.explode(param, ",")
if not getPlayerByName(data[1]) then
doPlayerSendCancel(cid, "Coloque el nombre del jugador.")
elseif tonumber(data[2]) == nil then
doPlayerSendCancel(cid, "Coloque la cantidad de dias.")
else
local name, dias = getPlayerByName(data[1]), tonumber(data[2])
doAddBanishment(getPlayerAccountId(name), dias * 24 * 60 * 60, 19, 2, Comentario, getPlayerGUID(cid))
doRemoveCreature(name)
end
else
doPlayerSendCancel(cid, "Coloque los datos necesarios.")
end
end
return TRUE
end
all really ty