blob: bf802464ef6c248f7cb75578e023d19ae06616ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#if defined _gamechaos_isvalidclient_client_included
#endinput
#endif
#define _gamechaos_isvalidclient_client_included
/**
* Checks if a client is valid.
*
* @param client Client index.
* @return True if valid, false otherwise.
*/
stock bool IsValidClient(int client)
{
return (client >= 0 && client <= MaxClients && IsValidEntity(client) && IsClientConnected(client) && IsClientInGame(client));
}
|