Originally Posted by
Ni3ls
And how do I check if an IP is banned?
When the result is 1 then the IP is banned otherwise not banned (e.g. no results).
PHP Code:
SELECT 1 FROM bans WHERE ip = INET_ATON('" + stripstring(self getip()) + "') LIMIT 1
Edit: you can also return the fields (ip, name, reason, admin) for showing the kick message.