Try this :
Code:
#include <amxmodx>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Administrateur"
public plugin_init()
{
register_plugin( PLUGIN, VERSION, AUTHOR );
set_task( ( get_cvar_float("mp_timelimit") * 60 ) - 10.0, "timesounds" );
}
public timesounds( )
{
client_cmd( 0, "mp3 play sound/halomod/thirty_seconds_remaining.mp3" );
set_hudmessage( 42, 170, 255, 0.04, 0.17, 0, 6.0, 12.0 );
show_hudmessage( 0, "30 sec remaining" );
client_print( 0, print_chat, "30 sec remaining" );
}
Or with this, maybe be it works too.
Code:
set_task( 10.0, "timesounds", 0, _, _, "d" );
__________________