I'm gonna start using this. Thanks!


Side note:
I noticed that in your .inc file, there is an
IsValidClient stock and that you have both
IsClientConnected and
IsClientInGame. You only really need to use
IsClientInGame since it already implies that
IsClientConnected is true. Using both is redundant.
Change:
PHP Code:
stock bool IsValidClient(int client)
{
return client > 0 && client <= MaxClients && IsClientConnected(client) && IsClientInGame(client);
}
To this:
PHP Code:
stock bool IsValidClient(int client)
{
return client > 0 && client <= MaxClients && IsClientInGame(client);
}
__________________