Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
fixed @ admin in chat
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo H committed Jul 20, 2019
1 parent ece5ffc commit fed31a8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions addons/sourcemod/scripting/surftimer/hooks.sp
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,7 @@ public Action Say_Hook(int client, const char[] command, int argc)
if (StrContains(sText, "!", false) == 0)
return Plugin_Handled;

// Chat Trigger?
if ((IsChatTrigger() && sText[0] == '/'))
//if ((IsChatTrigger() && sText[0] == '/') || (sText[0] == '@' && (GetUserFlagBits(client) & ADMFLAG_ROOT || GetUserFlagBits(client) & ADMFLAG_GENERIC)))
if ((IsChatTrigger() && sText[0] == '/') || (sText[0] == '@' && (GetUserFlagBits(client) & ADMFLAG_ROOT || GetUserFlagBits(client) & ADMFLAG_GENERIC)))
{
return Plugin_Continue;
}
Expand Down

0 comments on commit fed31a8

Please sign in to comment.