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(victim, attacker)
{
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(attacker, print_chat, You have %i kills.", g_KillCount)
}
}