Raised This Month: $ Target: $400
 0% 

Kill Counter


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Arje
Senior Member
Join Date: Apr 2020
Location: Córdoba, Argentina
Old 02-15-2022 , 10:54   Kill Counter
Reply With Quote #1

Hello, I would like to make a counter with my kills, but also that it counts every time a teammate dies

Currently it only counts every time I kill someone, and every time someone on the other team dies, and I would like it to only count my kills and when someone on my team dies

PHP Code:
new g_KillCount 0

//----------------------------------------------------------------------------------------------
public client_death(victimattacker)
{
    if ( 
victim == attacker ) return
    
    new 
CsTeams:attackerTeam cs_get_user_team(attacker)
    new 
CsTeams:victimTeam cs_get_user_team(victim)
    
    if ( 
is_user_alive(attacker) || victimTeam != attackerTeam ) {
        
g_KillCount g_KillCount 1
            client_print
(attackerprint_chatYou have %i kills.", g_KillCount)
    } 

Arje 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 11:35.


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