IsPlayerConnected check
#1

Question 1:
You can see this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/randomcommand", true))
    {
        if(IsPlayerConnected(playerid))
        {
           //Code
        }
        return 1;
    }
    return 0;
}
in the most of gamemodes, but isn't it useless as a player who is not connected can't write a command?
Edit: Answer is yes, it is useless.

Question 2:
Which native functions include IsPlayerConnected check? I know Kick and Ban does but which others?
Reply


Messages In This Thread
IsPlayerConnected check - by Coicatak - 09.09.2009, 14:17
Re: IsPlayerConnected check under OnPlayerCommandText - by woot - 09.09.2009, 14:25
Re: IsPlayerConnected check under OnPlayerCommandText - by Coicatak - 09.09.2009, 14:31
Re: IsPlayerConnected check under OnPlayerCommandText - by Coicatak - 09.09.2009, 15:03
Re: IsPlayerConnected check - by Coicatak - 09.09.2009, 15:55

Forum Jump:


Users browsing this thread: 1 Guest(s)