It'd be something like this:
PHP Code:
#include < amxmodx >
#include < fun >
#define VALUE 1
public plugin_init()
register_clcmd( "say /yay", "cmdyay" );
public cmdyay( i_Index )
{
if( get_user_health( i_Index ) == VALUE )
{
static szName[ 32 ];
get_user_name( i_Index, szName, charsmax( szName ) );
set_user_health( i_Index, (get_user_health( i_Index ) + 99) );
client_print( 0, print_chat, "%s 'yayed'!", szName );
}
}
Anyway, as Yami said: you must read the basics in the WIKI/somewhere else if you want any help in this section. Otherwise, post here:
http://forums.alliedmods.net/forumdisplay.php?f=12.
__________________