Open SHAREN opened 8 years ago
from smlib
stock bool:Client_IsValid(client, bool:checkConnected=true)
{
if (client > 4096)
client = EntRefToEntIndex(client);
if (client < 1 || client > MaxClients)
return false;
if (checkConnected && !IsClientConnected(client))
return false;
return true;
}
from Commands.sp::Command_BindAction
if (!Client_IsValid(iClient, true) || !IsPlayerAlive(iClient) || GetClientTeam(iClient) != CS_TEAM_CT) {
return Plugin_Continue;
}
I think need || !IsClientInGame(iClient)