StormRusher
New Member
- Joined
- Dec 23, 2009
- Messages
- 138
- Reaction score
- 0
well i have this anti-mc script
But the problem is, with it the players can abuse and leave for a trap or something like, he have a char traped, then he log a mc and both chars are kiked
I want this script only kick the char what have pz locked, so he cannot flee of a trap.
PHP:
local serverNameInScroll = getConfigInfo('serverNameInScroll')
local config = {
max = 0, -- max chars with the same ip
text = "Multi-Client is not allowed in "..serverNameInScroll.."!", -- text on kick
group_id = 1 -- only kick player with group id 1 (normal players)
}
local accepted_ip_list = {} -- list of ip's then can use MC
local function antiMC(p)
if #getPlayersByIp(getPlayerIp(p.pid)) >= p.max then
doRemoveCreature(p.pid)
end
return TRUE
end
function onLogin(cid)
if getPlayerGroupId(cid) <= config.group_id then
if isInArray(accepted_ip_list,getPlayerIp(cid)) == FALSE then
addEvent(antiMC, 250, {pid = cid, max = config.max+1})
doPlayerPopupFYI(cid, "You have been kicked because you are using Multi-Client.")
end
end
return TRUE
end
But the problem is, with it the players can abuse and leave for a trap or something like, he have a char traped, then he log a mc and both chars are kiked
I want this script only kick the char what have pz locked, so he cannot flee of a trap.
Last edited: