26.11.2015, 05:56
So this is my Range Banning code:
Its slow and it would take hours to ban one range..
Anyway to make it more faster? or optimize it?
Код:
stock BanRange(l1) { printf("[BanRange] Banning Range Starting from: %d", l1); new docmd[128], ipttl[128]; for(new i=1;i<256;i++) { for(new b=0;b<256;b++) { for(new c=0;c<256;c++) { format(ipttl, sizeof(ipttl), "%d.%d.%d.%d", l1, i, b, c); format(docmd, 128, "banip %s", ipttl); SendRconCommand(docmd); } } } return 1; }
Anyway to make it more faster? or optimize it?