Skip to content

Commit

Permalink
Merge pull request #7 from azalty/patch-6
Browse files Browse the repository at this point in the history
Fixed throwing knives not working with Bayonets
  • Loading branch information
azalty authored Mar 18, 2022
2 parents 46b7955 + beaa12b commit 09ceb00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/myjailshop.sp
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ public void Event_WeaponFire(Event event, char[] name, bool dontBroadcast)
char weapon[20];
event.GetString("weapon", weapon, sizeof(weapon));

if (StrContains(weapon, "knife", false) == -1)
if ((StrContains(weapon, "knife", false) == -1) && !StrEqual(weapon, "weapon_bayonet", false))
return;

int client = GetClientOfUserId(event.GetInt("userid"));
Expand Down

0 comments on commit 09ceb00

Please sign in to comment.