check if player
#4

Код:
if(PlayerInfo[playerid][muted] == 1) // This line checks if the player is muted if so it does something. 
{

// this what it will return if the player is muted. 
   return 1;
}

if(PlayerInfo[playerid][injail] == 1) // This line checks if the player is in jail if so it does something. 
{

// this what it will return if the player is muted. 
   return 1;
}

if(PlayerInfo[playerid][frozen] == 1) // This line checks if the player is frozen if so it does something.
{

// this what it will return if the player is muted. 
   return 1; 
}
For example:

Код:
if(PlayerInfo[playerid][injail] == 1) // We have cheked that the player is in prison.
{ 
    SendClientMessage(playerid, RED, "You can't use that command in jail"); // After we found out he is in prison we tell him that the command he is using is forrbiden in prison. 
    return 1; 

}
Reply


Messages In This Thread
check if player - by Gafsi - 21.11.2013, 00:24
Re: check if player - by DarkLored - 21.11.2013, 00:52
Re: check if player - by Brandon_More - 21.11.2013, 02:47
Re: check if player - by xFallen - 21.11.2013, 09:34
Re: check if player - by iJumbo - 21.11.2013, 09:35
Re: check if player - by xFallen - 21.11.2013, 09:42

Forum Jump:


Users browsing this thread: 1 Guest(s)