• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

possbile ?

Lbtg

Advanced OT User
Joined
Nov 22, 2008
Messages
2,398
Reaction score
165
Hello , posible to block players with ips ?

i want to make like a page and write here player IPS with i dont want to let login ,

if they try login , it should say , you are not allowed to play the server.



posible ?
 
actualy i ment about the server , not website

- - - Updated - - -

but for server , and website would be cool to have both , for future :)

thanks :)
 
creaturescripts.xml
XML:
<event type="login" name="CheckIP" event="script" value="check.lua"/>
check.lua
LUA:
local IP = {
"10.1.1.3", 
"1.1.1.1"
}

function onLogin(cid)
	if isInArray(IP, doConvertIntegerToIp(getPlayerIp(cid))) == true then
		return false
	end
	return true
end

Test it and tell if worked for you :P
PD: I have no idea how to send a message direct to the client being offline, sorry.
 
Back
Top