09.09.2009, 14:17
Question 1:
You can see this:
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?
You can see this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/randomcommand", true))
{
if(IsPlayerConnected(playerid))
{
//Code
}
return 1;
}
return 0;
}
Edit: Answer is yes, it is useless.
Question 2:
Which native functions include IsPlayerConnected check? I know Kick and Ban does but which others?