Hi there, just trying to learn and I have got a long way to go.
I just have a question from reading the wiki:
Code:
register_concmd("amx_hp", "cmd_hp", ADMIN_SLAY, "<target> ")
So that registers the command "amx_hp" to be typed in the console, it runs the public function "cmd_hp", it checks the user has "admin_slay" access, and the "target" performs the action on the user that runs it.
If I was to type the command "amx_hp 1" in the console, how would I be able to access the "1"?
So for instance in my case, I want to check to see if an admin has already performed said command on him/herself.
So I would assume I use a kind of IF statement like:
Code:
IF amx_hp = 1 THEN
........ ELSE
........
My question I guess, is would it work like that, or do I need to know the location that the command is stored?
__________________