Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client 17 is not in game -- IsPlayerAlive -- Command_BindAction #38

Open
SHAREN opened this issue Nov 2, 2016 · 1 comment
Open

Client 17 is not in game -- IsPlayerAlive -- Command_BindAction #38

SHAREN opened this issue Nov 2, 2016 · 1 comment

Comments

@SHAREN
Copy link
Contributor

SHAREN commented Nov 2, 2016

[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
@SHAREN
Copy link
Contributor Author

SHAREN commented Nov 3, 2016

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant