Raised This Month: $ Target: $400
 0% 

attempting to optimize code


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
sirerick
Senior Member
Join Date: Jul 2012
Location: Venezuela
Old 05-31-2016 , 08:41   attempting to optimize code
Reply With Quote #1

Is this the best way to elbow this code?

PHP Code:
if (g_isalive[id] && (get_user_team(id) == ) && (g_level[id] > 99) && (g_level[id] <= 199))
    {
        
cs_set_player_model(id"Model_1_CT")         
    }
    else if (
g_isalive[id] && (cs_get_user_team(id) == CS_TEAM_T ) && (g_level[id] > 99) && (g_level[id] <= 199))
    {
        
cs_set_player_model(id"Model_1_T")         
    }
    if (
g_isalive[id] && (get_user_team(id) == ) && (g_level[id] == 200))
    {
        
cs_set_player_model(id"Model_2_CT")         
    }
    else if (
g_isalive[id] && (cs_get_user_team(id) == CS_TEAM_T ) && (g_level[id] == 200))
    {
        
cs_set_player_model(id"Model_2_T")         
    } 
sirerick is offline
 


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 18:39.


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