24.05.2011, 14:27
That wont work, since your comparing it into a string
example: if my ip is 123.123.123.123
if will check if "123.123.123.123" is equal to "123.123.*.*", it isnt equal due to the stars so wont detect the player.
You will have to split the part of the player's ip, and the part of the banned IP (to get only the first two parts) and compare those!
example: if my ip is 123.123.123.123
if will check if "123.123.123.123" is equal to "123.123.*.*", it isnt equal due to the stars so wont detect the player.
You will have to split the part of the player's ip, and the part of the banned IP (to get only the first two parts) and compare those!