IsPlayerNPC

From NPC for VCMP 0.4 Servers
Revision as of 16:35, 1 April 2022 by Habi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Description:
Checks if a player is an NPC


Parameters:

(playerid)

playerid: The id of the player to be check.


Return Values:
true, if the player is an NPC; false, otherwise.


Example

function onPlayerJoin(player)
{
	if(IsPlayerNPC(player.ID))
		print("An NPC connected");
}

Related Functions

The following functions may be helpful as they relate to this function in one way or another.