• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Ip ban - HELP

Cosmotonio

New Member
Joined
Nov 26, 2007
Messages
142
Reaction score
0
Code:
ips = {"200.158.52.164","189.55.35.11","189.30.99.209"}
function onThink(cid)
	if isInArray(ips, "getPlayerIp(cid)") == 1 then	
		doRemoveCreature(cid)
	end
end
 
Last edited:
Try this:
Code:
function onThink(cid)
 local ipList =
{
"200.158.52.164",
"189.55.35.11",
"189.30.99.209"
}
	if isInArray(ipList, getPlayerIp(cid)) == 1 then	
	   doRemoveCreature(cid)
 end
 return TRUE
end
If won't work you can up the topic for more reples...
 
Back
Top