IsPlayerNPC
From SA-MP Wiki
Description:
Check if a player is an actual player or an NPC.
(playerid)
playerid | The ID of the player to check. |
Return Values:
- 1: The player is an NPC.
- 0: The player is not an NPC.
Example Usage:
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.
- ConnectNPC: Connect an NPC.
- IsPlayerAdmin: Checks if a player is logged into RCON.