First, the "<target>" is nothing other than help. In other words, when you do amx_help blah blah, or just type amx_hp (without anything else) it would say Usage: amx_hp <target>. If I changed <target> to player (in the register_concmd line), then in the help menu, it would say: Usage: amx_hp <player>. It's only to help users understand how to use it, and can be omitted altogether.
Also, to find out about the value of HP, you do something with read_argv. You can read-in the value of the parameter passed and do things with it. For example:
PHP Code:
new Arg1[24]
new Arg2[4]
//Get the command arguments from the console
read_argv(1, Arg1, 23) // <--- this reads the first parameter (the player)
read_argv(2, Arg2, 3) // <--- this is the value of health
new Health = str_to_num(Arg2)
if (Health = 1) {
// you have 1
}
BTW: The command is amx_hp <player> <health>, so <player> is argument 1, and <player is argument 2>. In the code above you wil see arg1 and arg2, so you know what is referring to what
Sorry if I explained this horribly
__________________