Raised This Month: $ Target: $400
 0% 

Reduce code


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 01-02-2015 , 08:35   Re: Reduce code
Reply With Quote #6

Something like that, if it's reduced enough?
PHP Code:
public fw_PlayerKilled(victimattacker)   

    
    if(
cs_get_counter_count(1) == 1)
    {
        
set_dhudmessage(random(256), random(256), random(256))
        
        if(
cs_get_terrorist_count(1) == 1)
        {
            
show_dhudmessage(0"%s Vs %s!"ctNametName
            
client_cmd(0,"spk ^"vox/ %s vs %s^""ctNametName)
            return
        }
        
        
show_dhudmessage(0"%s The Last And Only!"tName
        if(
get_pcvar_num(toao_voice))
            
client_cmd(read_data(2), "spk %s"get_pcvar_num(toao_voice) == g_szSoundVoice g_szSoundVoice1); 
            
        return
        
    }

__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
 



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 15:17.


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