View Single Post
eyal282
Veteran Member
Join Date: Aug 2011
Old 02-08-2020 , 08:22   Re: [ANY] SRCDS Server Crasher Exploit Patch [6/27/19]
Reply With Quote #23

Quote:
Originally Posted by Wanheda View Post
Code:
RequestCount[client] -= 32;
why exactly 32?

Code:
for (new client = 0; client <= MaxClients; client++)
iterating through 32 entities and checking if <= is wrong, you should start your for loop with 1 for that, there's no '0' client (let me mention i might be wrong, not sure)

Code:
for (new client = 1; client <= MaxClients; client++)
after some lines you do the same exact thing but correctly, you should always start with 1 if you're checking <=

anyways, i didnt find any other wrong code besides that
You should always start with 1 period.
Code:
for(new i=1;i <= MaxClients;i++)
{
    if(!IsClientInGame(i)) // i is just an entity that can be assigned to a player if it's in the range of 1 <= i <= MaxClients, it is not guaranteed it has been assigned to a player.
        continue;

     KickClient(i, "i i i i i i i i i i i");
}
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline