IsPlayerNPC

IsPlayerNPC

Description:
Function IsPlayerNPC check if a player is an actual player or an NPC.
Function IsPlayerNPC was added in 0.3a and will not work in earlier versions!


Parameters:
(playerid)
int playerid The ID of the player to check.


Return Values:
  • 1: The player is an NPC.
  • 0: The player is not an NPC.


Examples:
public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid))
    {
	SendClientMessageToAll(-1, "An NPC connected!");
	return 1;
    }
}


Related Functions
The following functions may be useful, as they are related to this function in one way or another.