event onPlayerHit (server-side)
This event can be canceled
This event is triggered when one player hits another player.
int playerid, int killerid, int dmg, int dmgType
intplayerid: the id of the player who was hit.
intkillerid: the id of the killer. If killerid is set to
-1, it means that there was no killer. In this particular case damage source can be fall from a tall object or scripts.
intdmg: a value representing the amount of health the player lost.
intdmgType: a flag representing the types of damage. For more information see Damage constants