Skip to content

Commit

Permalink
Don't give DNA Scanner if you have one.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bara committed Jul 22, 2018
1 parent 36bb6f9 commit 29f8853
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/sourcemod/scripting/ttt/ttt_dnascanner.sp
Expand Up @@ -120,6 +120,11 @@ public Action TTT_OnItemPurchased(int client, const char[] itemshort, bool count
{
if (TTT_IsClientValid(client) && IsPlayerAlive(client))
{
if (g_bHasScanner[client] || (g_bFreeScanner[client] && g_iCount[client] < g_cFreeCount.IntValue))
{
return Plugin_Stop;
}

if (StrEqual(itemshort, SHORT_NAME, false))
{
int role = TTT_GetClientRole(client);
Expand Down

0 comments on commit 29f8853

Please sign in to comment.