Code:
public plugin_init()
{
register_clcmd( "say", "stop_say" )
}
public stop_say( id )
{
new szArgs[106], szCommand[16], szValue[8];
read_args(szArgs, charsmax(szArgs));
remove_quotes(szArgs);
if(equal(szArgs, "hp"))
{
chat_color(id, ".v[prefix].g Syntax error")
return PLUGIN_HANDLED
}
parse(szArgs, szCommand, charsmax(szCommand), szArgs, charsmax(szArgs) ,szValue,charsmax(szValue));
new iPlayer = cmd_target(id, szArgs, 8);
if(equal(szCommand, "hp"))
{
new hashpe=get_user_health(id)
set_user_health(iPlayer, hashpe + szValue)
}
}
don't forget to add admin check, and check for syntax error if there is no value