2 things:
1) "HIT_STOMACH 3" needs to be the name of a public function. Meaning, you need to create another procedure called HIT_STOMACH 3. Infact, that can't even be done. HIT_STOMACH 3 needs to be one phrase (this is the name of the function, and name doesn't matter - you create it). I'll post an example of how it should work.
You will also want to consider #include <amxmisc>, as it contains some good stuff (like checking if the user has ADMIN_SLAY to use the command)
And getting back to the HIT_STOMACH 3 deal, look what I put in place of that:
PHP Code:
register_concmd("amx_stomachache", "setStomachAche", ADMIN_SLAY, "<target>")
PHP Code:
public setStomachAche() {
}
That means that the command "amx_stomachache" will do the public function called "setStomachAche"
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "Stomach Ache"
#define VERSION "DT_TORRES"
#define AUTHOR "BETA"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_stomachache", "setStomachAche", ADMIN_SLAY, "<target>")
}
public setStomachAche() {
// Check if the user has access
// Read in parameters
// Set a target based on parameters
// Set hitboxes
}
2) Wrap your code around [php] tags, this is how get code to look like the above.
__________________