Skip to content

Commit

Permalink
Update 1.11
Browse files Browse the repository at this point in the history
now you will no longer get credits on doing any of the stuff team.
  • Loading branch information
Cruze03 committed Oct 2, 2018
1 parent bda9364 commit d360217
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripting/[Store] Credits for specified events.sp
Expand Up @@ -39,7 +39,7 @@ public Plugin myinfo =
name = "[Store] Credits for specified events",
author = "Cruze",
description = "Credits for hs, knife, backstab knife, zeus, hegrenade, mvp, assists",
version = "1.1",
version = "1.11",
url = "http://steamcommunity.com/profiles/76561198132924835"
}

Expand Down Expand Up @@ -161,7 +161,7 @@ public void OnClientPutInServer(int client)
}
public Action OnTakeDamage(int victim, int &attacker, int &inflictor, float &damage, int &damagetype)
{
if (victim < 1 || victim > MaxClients || attacker < 1 || attacker > MaxClients)
if (victim < 1 || victim > MaxClients || attacker < 1 || attacker > MaxClients || GetClientTeam(attacker) == GetClientTeam(victim))
return Plugin_Continue;

GetClientWeapon(attacker, weapon, sizeof(weapon));
Expand Down Expand Up @@ -192,7 +192,12 @@ public void OnPlayerDeath(Event event, const char[] name, bool dontBroadcast)

if(assister == attacker)
return;


if(GetClientTeam(victim) == GetClientTeam(attacker))
return;

if(GetClientTeam(assister) == GetClientTeam(attacker))
return;

GetEventString(event, "weapon", weapon, sizeof(weapon));

Expand Down

0 comments on commit d360217

Please sign in to comment.