Skip to content

Commit

Permalink
Added missing whitelist check in the VPN menu
Browse files Browse the repository at this point in the history
  • Loading branch information
azalty committed Jan 27, 2023
1 parent 9f4f28e commit b8d43e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified plugins/no_dupe_account.smx
Binary file not shown.
4 changes: 2 additions & 2 deletions scripting/no_dupe_account.sp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <steamworks>
#include <discord>

#define PLUGIN_VERSION "1.5.2 Beta 2"
#define PLUGIN_VERSION "1.5.2 Beta 3"

#define AMOUNT_METHODS 14 // total amount of methods in the config file

Expand Down Expand Up @@ -410,7 +410,7 @@ int VPNMenu(Menu menu, MenuAction action, int client, int itemNum)
char ip[20];
for (int i = 1; i <= MaxClients; i++)
{
if (IsClientInGame(i) && !IsFakeClient(i))
if (IsClientInGame(i) && !IsFakeClient(i) && !IsClientWhitelisted(i, "vpn"))
{
g_bVPN[i] = false;
GetClientIP(i, ip, sizeof(ip));
Expand Down

0 comments on commit b8d43e4

Please sign in to comment.