Raised This Month: $ Target: $400
 0% 

PLay sound on 10 second remaining


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-11-2007 , 19:36   Re: PLay sound on 10 second remaining
Reply With Quote #4

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" );
__________________

Last edited by Arkshine; 05-11-2007 at 19:41.
Arkshine is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode