Damon
Check my status to contact me :)
Hey, is there any talkaction, which kicks all players, which are online from same ip-adress?
like if i do /mc , i see all players who are online from same ip-adress, but now i want to write something like /mckick to kick all of them, who are just online at the moment!
can someone give me that script, or make it for me?
i just got multikick, but dunno, what it does:
like if i do /mc , i see all players who are online from same ip-adress, but now i want to write something like /mckick to kick all of them, who are just online at the moment!
can someone give me that script, or make it for me?
i just got multikick, but dunno, what it does:
function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
local players = {}
if(param:sub(1, 1) ~= '*') then
local t = string.explode(param, ",")
if(not t[2]) then
t[2] = t[1]
end
local multifloor = false
if(t[3]) then
multifloor = getBooleanFromString(t[3])
end
players = getSpectators(getCreaturePosition(cid), t[1], t[2], multifloor)
else
players = getPlayersOnline()
end
local tmp = 0
for i, tid in ipairs(players) do
if(isPlayer(tid) and tid ~= cid and getPlayerAccess(tid) < getPlayerAccess(cid)) then
doRemoveCreature(tid)
tmp = tmp + 1
end
end
if(tmp > 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Kicked " .. tmp .. " players.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Could not kick any player.")
end
return true
end