event onPlayerChangeHealth (server-side)
Available since version: 0.3.0
Triggered when player health changes.
Parameters
void onPlayerChangeHealth(int player_id, int oldHP, int newHP)
intplayer_id: The id of the player whose health points got changed.intoldHP: The previous health points of the player.intnewHP: The new health points of the player.