Why "IsPlayerConnected" at a command.
#10

Quote:
Originally Posted by Mean
Посмотреть сообщение
Yes, but it's useless in cmds like this:
pawn Код:
CMD:teleport( playerid, params[ ] )
{
    if( IsPlayerConnected( playerid ) )
    {
        SetPlayerPos( playerid, 0.0, 0.0, 0.0 );
    }
    return 1;
}
Isn't it?
Ofc, it's just useful if it has something to do with another player and you need check if that player is connected.
But for a command where only you are involved it's not needed.
Reply


Messages In This Thread
Why "IsPlayerConnected" at a command. - by Biesmen - 19.02.2011, 12:00
Re: Why "IsPlayerConnected" at a command. - by Jochemd - 19.02.2011, 12:11
Re: Why "IsPlayerConnected" at a command. - by Biesmen - 19.02.2011, 12:12
Re: Why "IsPlayerConnected" at a command. - by Jochemd - 19.02.2011, 12:13
Re: Why "IsPlayerConnected" at a command. - by Biesmen - 19.02.2011, 12:14
Re: Why "IsPlayerConnected" at a command. - by Mean - 19.02.2011, 12:19
Re: Why "IsPlayerConnected" at a command. - by Ash. - 19.02.2011, 12:22
Re: Why "IsPlayerConnected" at a command. - by Serbish - 19.02.2011, 12:23
Re: Why "IsPlayerConnected" at a command. - by Mean - 19.02.2011, 12:25
Re: Why "IsPlayerConnected" at a command. - by Serbish - 19.02.2011, 12:29

Forum Jump:


Users browsing this thread: 6 Guest(s)