Try this :
Code:
#include < amxmodx >
#include < fun >
public plugin_init( )
{
register_plugin( "Test" , "1.0" , "Aooka" );
register_clcmd( "say /test" , "Cmd_Test" );
}
public Cmd_Test( id )
{
if( is_user_alive( id ) )
{
if( get_user_flags( id ) & ADMIN_LEVEL_B )
{
set_user_health( id , 500 );
client_cmd( id , "spk sound/GagaSong/Si.wav" );
client_print( id , print_chat , "Voce comprou 500 de Vida!!" );
client_print( id , print_chat , "By:Klysman =] !!" );
}
else
{
client_print( id , print_chat , "You must be an Admin with the flag B" );
}
}
}
__________________