Raised This Month: $ Target: $400
 0% 

Timer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Monster Truck
Member
Join Date: Jan 2012
Location: France
Old 01-12-2014 , 05:31   Re: Timer
Reply With Quote #6

I tried to make this :

PHP Code:
#include <amxmodx>

#define RED    0
#define GREEN    100
#define BLUE    200

new const sound_round_ended[ ] = "AdventSyn/round_ended.mp3";

new 
bool:g_bPlayerRoundEnded;

public 
plugin_init() 
{
    
register_plugin"Round End Sound + HUD""1.1""Imag!ne" );
    
register_event"RoundTime""eventRoundTime""a""1=0" );
    
register_event"DeathMsg""eDeathMsg""a" );
    
register_event"HLTV""eNewRound""a""1=0""2=0" ) ;
}

public 
eventRoundTime() 
{
    
set_hudmessageREDGREENBLUE, -1.00.3523.010.00.10.2, -);
    
show_hudmessage0"Il est 0:00 Les CT's Peuvent FREEKILL !!!" ); 
    
    if( !
g_bPlayerRoundEnded )
    {
        
g_bPlayerRoundEnded true;
        
client_cmd0"mp3 play %s"sound_round_ended );
    }
}

public 
plugin_precache( )
{
    
precache_soundsound_round_ended );
}

public 
eNewRound( )
{
    
g_bPlayerRoundEnded false;

but it doesn't work

(Imag!ne is my in game name)

Last edited by Monster Truck; 01-12-2014 at 05:31.
Monster Truck 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 10:11.


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