TeamGames
TeamGames copied to clipboard
Client 17 is not in game -- IsPlayerAlive -- Command_BindAction
[SM] Exception reported: Client 17 is not in game
[SM] Blaming: TeamGames/TeamGames.smx
[SM] Call stack trace:
[SM] [0] IsPlayerAlive
[SM] [1] Line 5, Commands.sp::Command_BindAction
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)