With these:
PHP Code:
register_concmd("amx_myfunction", "cmdFunction", _, "<option1> <option2>")
public cmdFunction(id)
{
new arg1[32], arg2[3]
read_argv(1, arg1, charsmax(arg1))
read_argv(2, arg2, charsmax(arg2))
// arg1 contains the string of <option1>
// arg2 contains the string of <option2>
new player = cmd_target(id, arg1)
if(player)
{
set_user_godmode(id, str_to_num(arg2))
}
return PLUGIN_HANDLED
}
__________________