IsPlayerNPC: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{Welcome| desc=Checks if a player is an NPC| params=<syntaxhighlight lang="lua">(playerid)</syntaxhighlight> <poem>::playerid: The id of the player to be check. </poem>| retv...")
 
No edit summary
Line 12: Line 12:
}
}
</source>|
</source>|
relfuncs=*[[IsPlayerNPC]]
relfuncs=*[[ConnectNPC]]
}}
}}

Revision as of 07:48, 10 March 2022


Description:
Checks if a player is an NPC


Parameters:

(playerid)

playerid: The id of the player to be check.


Return Values:
This function does not return any specific values.


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.