Well I have this...
Code:
#include <amxmodx>
new const cafeIP[][] =
{
"192.168.",
"172.16.",
"10.16."
};
public client_connect(id)
{
new clientIP[8];
get_user_ip(id, clientIP, 7, 1);
for(new i = 0; i < sizeof(clientIP); i++)
{
if(containi(clientIP, clientIP[i]) != -1)
{ // Give players automatic $16000 }
}
}
And as you can see on the
10.16. if someone connects with 2
10.16, it returns true as well.
Since 10.16 is contained in 210.16.