Raised This Month: $ Target: $400
 0% 

[ Help ] command at the beginning of the round


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 06-26-2018 , 09:19   [ Help ] command at the beginning of the round
Reply With Quote #1

What is the difference between these and what is more effective:

Code:
new bool:g_freezetime = true;

register_event( "HLTV", "EventNewRound", "a", "1=0", "2=0" );

public EventNewRound( )
{
	g_freezetime = true;
}
- >
Code:
new bool:g_freezetime = true;

register_logevent( "LogEventNewRound", 2, "1=Round_Start" );

public LogEventNewRound( )
{
	g_freezetime = false;
}
The test is like Variables, for example:
PHP Code:
    new Float:maxspeed;
    
pevclientpev_maxspeedmaxspeed );
    
    if( 
maxspeed != 1.0 )
    {
        if( !
g_freezetime )
        {
            switch( 
read_data) )
            {
                case 
CSW_SCOUT:                    maxspeed 260.0;
                case 
CSW_P90:                    maxspeed 245.0;
                case 
CSW_XM1014,CSW_AUG,CSW_GALIL,CSW_FAMAS:    maxspeed 240.0;
                case 
CSW_SG552 :                maxspeed 235.0;
                case 
CSW_M3,CSW_M4A1 :                maxspeed 230.0;
                case 
CSW_AK47 :                    maxspeed 221.0
                case 
CSW_M249 :                     maxspeed 220.0;
                case 
CSW_AWP,CSW_SG550,CSW_G3SG1 :         maxspeed 210.0;
                default :                     
maxspeed 250.0;
            }
        }
        
        
set_pevclientpev_maxspeedmaxspeed );
    } 

Last edited by Fuck For Fun; 06-26-2018 at 09:20.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
 


Thread Tools
Display Modes

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 12:24.


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