Raised This Month: $ Target: $400
 0% 

Lose identation


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 07-13-2012 , 11:17   Lose identation
Reply With Quote #1

PHP Code:
public fw_player_killed(victimattackershouldgib)
{

    if(!
is_user_connected(victim) || !is_user_connected(attacker) || attacker == victim || get_playersnum() < 4)
    return 
HAM_IGNORED;

    new 
bool:killvip[32], bool:killct[32], bool:killviphs[32], bool:killhs[32];
        
    if(
get_user_team(attacker) == 1)
    {
        if(
get_user_flags(attacker) & ADMIN_LEVEL_H)
        {
            
g_jbpacks[attacker] += get_pcvar_num(g_killjp) * 2;
            
killvip[attacker] = true;
        }
        else
        {
            
g_jbpacks[attacker] += get_pcvar_num(g_killjp);
            
killct[attacker] = true;
        }
        
        if(
get_pdata_int(victim75) == HIT_HEAD)
        {
            if(
get_user_flags(attacker) & ADMIN_LEVEL_H)
            {
                
g_jbpacks[attacker] += get_pcvar_num(g_killhsjp) * 2;
                
killviphs[attacker] = true;
            }
            else
            {
                
g_jbpacks[attacker] += get_pcvar_num(g_killhsjp);
                
killhs[attacker] = true;
            }
        }
        
        if(
killviphs[attacker]) {
            
ChatColor(attacker"!g[Shop] !yTu gavai !team%d NP !yuz  nuzudyta CT + !team%d NP!y, nes padariai tai su HS.",  get_pcvar_num(g_killjp) * 2get_pcvar_num(g_killhsjp) * 2);
            
killviphs[attacker] = false;
        }
        else if(
killhs[attacker]) {
            
ChatColor(attacker"!g[Shop] !yTu gavai !team%d NP !yuz  nuzudyta CT + !team%d NP!y, nes padariai tai su HS.",  get_pcvar_num(g_killjp), get_pcvar_num(g_killhsjp));
            
killhs[attacker] = false;
        }
        else if(!(
killviphs[attacker]) && killvip[attacker]) {
            
ChatColor(attacker"!g[Shop] !yTu gavai !team%d NP !yuz nuzudyta CT."get_pcvar_num(g_killjp) * 2)
            
killvip[attacker] = false;
        }
        else if(!(
killhs[attacker]) && killct[attacker]) {
            
ChatColor(attacker"!g[Shop] !yTu gavai !team%d NP !yuz nuzudyta CT."get_pcvar_num(g_killjp));
            
killct[attacker] = false;
        }
    }
    return 
HAM_IGNORED;


Last edited by GhostMan; 07-13-2012 at 11:25.
GhostMan 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 15:23.


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