AmISpawned

From NPC for VCMP 0.4 Servers
Revision as of 05:06, 6 September 2024 by Habi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Description:
This function checks whether the npc is currently spawned.


Parameters:

NoParams


Return Values:
Returns true if the npc is spawned, false otherwise.


Example

function OnPlayerText(playerid, message)
{
	if(message== "John")
	{
		if(AmISpawned())
		{
			SendChat("Yes dear.");
		}
		else
		{
			SendChat("I'm not spawned lilly");
		}
	}
}

Related Functions

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