Quote:
Originally Posted by Crasher_3637
Below this line:
PHP Code:
new attacker = GetClientOfUserId(GetEventInt(event, "attacker"));
You can add:
PHP Code:
if (!(0 < attacker <= MaxClients && IsClientInGame(attacker))) // check that attacker index is between 1 and 32 and is in-game
return Plugin_Continue;
|
Had anyone seen a client index above the MacClients value? Just asking here cause I never check if a client index is below 32 and haven’t had any errors about that over the years, but wondering why it’s a common practice to check.