Skip to content
Permalink
Browse files

Add missing flag check

  • Loading branch information...
Bara committed May 15, 2019
1 parent 03b184d commit cdea70f320fd41a61ca3616b20c24bb206cbf4aa
Showing with 8 additions and 0 deletions.
  1. +8 −0 addons/sourcemod/scripting/ttt/ttt_shop_discount.sp
@@ -146,6 +146,14 @@ public Action TTT_OnItemPurchase(int client, int &price, bool &count, const char
{
if (TTT_IsClientValid(client) && IsPlayerAlive(client))
{
char sFlag[16];
g_smFlag.GetString(sItem, sFlag, sizeof(sFlag));

if (strlen(sFlag) > 0 && !HasFlags(client, sFlag))
{
return Plugin_Continue;
}

int iPercent = 0;
if (g_smPercent.GetValue(sItem, iPercent))
{

0 comments on commit cdea70f

Please sign in to comment.
You can’t perform that action at this time.