Take a look at this line:
PHP Code:
register_concmd("amx_stomachache", "setStomachAche", ADMIN_SLAY, "<target>")
The second parameter: "setStomachAche" is the name of the function that will run when someone does amx_stomachache.
Now look at this:
PHP Code:
public setStomachAche() {
// Check if the user has access
// Read in parameters
// Set a target based on parameters
// Set hitboxes
}
This actually creates the fucntion called setStomachAche. The amx_stomachache will run the above procedure. You put whatever necessary code in there.
__________________