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

Commit

Permalink
VIP spam fix
Browse files Browse the repository at this point in the history
  • Loading branch information
totles authored Aug 15, 2019
1 parent 7c86d35 commit 31fd807
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/sourcemod/scripting/surftimer/misc.sp
Original file line number Diff line number Diff line change
Expand Up @@ -4318,20 +4318,20 @@ public void sendDiscordAnnouncementBonus(char szName[128], char szMapName[128],
delete hook;
}

bool IsPlayerVip(int client, bool admin = true, bool reply = true)
bool IsPlayerVip(int client, bool admin = true, bool reply = false)
{
if (admin)
{
if (CheckCommandAccess(client, "", ADMFLAG_ROOT))
return true;
}

if (!g_bVip[client] && !CheckCommandAccess(client, "", ADMFLAG_RESERVATION))
if (!g_bVip[client] && !g_iHasEnforcedTitle[client])
{
if (reply)
{
CPrintToChat(client, "%t", "Misc43", g_szChatPrefix);
PrintToConsole(client, "surftimer | This is a VIP feature");
PrintToConsole(client, "SurfTimer | This is a VIP feature");
}
return false;
}
Expand Down

0 comments on commit 31fd807

Please sign in to comment.