SetPlayerHealth: Difference between revisions
(Created page with "Sets the health of a player. {{CSharpContainer| {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Player.SetPlayerHealth(Client player, int health);}} {{Parameters}} *...") |
(Fix small type mistake.) |
||
| Line 6: | Line 6: | ||
{{Parameters}} | {{Parameters}} | ||
*'''player:''' Parameter input should be in '''Client''' type. | *'''player:''' Parameter input should be in '''Client''' type. | ||
*'''health:''' Parameter input should be in ''' | *'''health:''' Parameter input should be in '''int''' type. | ||
{{Example}} | {{Example}} | ||
Revision as of 16:38, 12 December 2019
Sets the health of a player.
C# Syntax
void NAPI.Player.SetPlayerHealth(Client player, int health);
Parameters
- player: Parameter input should be in Client type.
- health: Parameter input should be in int type.
Example
NAPI.Player.SetPlayerHealth(player, 100);