Skip to content
Permalink
Browse files

Don't give DNA Scanner if you have one.

  • Loading branch information...
Bara committed Jul 22, 2018
1 parent 36bb6f9 commit 29f8853b1ba4aaedd2781916138f022663155b17
Showing with 5 additions and 0 deletions.
  1. +5 −0 addons/sourcemod/scripting/ttt/ttt_dnascanner.sp
@@ -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);

0 comments on commit 29f8853

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