This command deals the specified amount of damage to your character. Note that if you deal damage higher than your health, you will die.
The syntax for the hitlocalplayer command is as follows:
This command has the following arguments:
|Amount||A number between 0 and 100, the amount of damage to deal to your character. 100 would kill your character.|
Find below working examples of the hitlocalplayer command.
The above console command would deal 10 damage to your character.
This command deals 30 damage to you.