Raised This Month: $ Target: $400
 0% 

Miscount roundtime help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hectik17
AlliedModders Donor
Join Date: Oct 2005
Old 03-14-2017 , 04:37   Re: Miscount roundtime help
Reply With Quote #3

ive done it im a frigin genius, lol if anyone can over look and see if im missing something or can tidy up the code that would be good, i know im missing author info, but is that needed relay?

PHP Code:
#include < amxmodx >
#include < cstrike >

new CurrentRound;
new 
Rcount;

public 
plugin_init( )
{
    
register_concmd"live""ClientCommand_Live" );
    
//register_logevent( "LogEvent_RoundStart", 2, "1=Round_Start" );
    
register_logevent"RoundEnd"2"1=Round_End" );
    
//register_event("HLTV", "round_start", "a", "1=0", "2=0")
    
Rcount register_cvar"amx_rcount""15"ADMIN_BAN );
    
register_event"SendAudio""Event_SendAudio_TWin""a""2&%!MRAD_terwin" );
    
register_event"SendAudio""Event_SendAudio_CTWin""a""2&%!MRAD_ctwin" );
    
register_event("TextMsg","Reset_Counter","a","2&#Game_C","2&#Game_w")
    
state live;
    
CurrentRound 0;
}
public 
ClientCommand_LiveClient )
{
    
server_cmd"amx_rcount 15" );
    
CurrentRound 0;
    {
        new 
Rcount get_pcvar_num(Rcount)
    }
}

public 
RoundEnd( ) <live>
{
    
CurrentRound++;
    if( 
CurrentRound >= get_pcvar_numRcount ) )
    {
        
server_cmd"fmatch_enable 0" );
        
CurrentRound 0;
    }
}
public 
Reset_Counter( ) <live>
{
    
state live;
    
CurrentRound 0;
}

public 
Event_SendAudio_TWin( ) <live>
{
}
public 
Event_SendAudio_CTWin( ) <live>
{


Last edited by Hectik17; 03-14-2017 at 05:51. Reason: Dont need ya hospitality
Hectik17 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 17:49.


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