OnPlayerDeath: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{Welcome| desc=This function is called when a player in the server dies.| params=<syntaxhighlight lang="lua">(playerid)</syntaxhighlight> <poem>::playerid : The ID of the pla...")
 
No edit summary
 
Line 1: Line 1:
{{Welcome|
{{Welcome|
desc=This function is called when a player in the server dies.|
desc=This function is called when a player in the server dies or npc dies.|
params=<syntaxhighlight lang="lua">(playerid)</syntaxhighlight>
params=<syntaxhighlight lang="lua">(playerid)</syntaxhighlight>
<poem>::playerid : The ID of the player died/killed.</poem>|
<poem>::playerid : The ID of the player died/killed.</poem>|

Latest revision as of 13:16, 24 November 2022


Description:
This function is called when a player in the server dies or npc dies.


Parameters:

(playerid)

playerid : The ID of the player died/killed.


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


Example

function OnPlayerDeath(playerid)
{
	//print("Player "+playerid+" has died\n");
}