salut
pour te répondre nikko, et ajouter ma part à ce topic... voici une fonction qui dit tout:
stock BanRanges(ip[], ranges)
{
new count = 1, ban[25];
for(new i = strlen(ip); i > 0; i--)
{
if (ip[i] == '.')
{
if (count == ranges)
{
format(ban, sizeof ban, "banip %s", ip);
print(ban);
SendRconCommand(ban);
break;
}
else count++;
}
else ip[i] = '*';
}
}
voilà :happy
++Sim++