Update VPN-Check.sp
This commit is contained in:
parent
222e999114
commit
f54bd9ea80
@ -1,7 +1,7 @@
|
||||
#include <sourcemod>
|
||||
#include <steamworks>
|
||||
#include <multicolors>
|
||||
#include <RevEmuAPI>
|
||||
#include <NoSteamManager>
|
||||
|
||||
#pragma newdecls required
|
||||
#pragma semicolon 1
|
||||
@ -75,7 +75,7 @@ public Action Command_CheckVPN(int client, int args)
|
||||
GetClientAuthId(i, AuthId_Steam2, sSteamID, sizeof(sSteamID));
|
||||
GetClientIP(i, sIP, sizeof(sIP));
|
||||
|
||||
if(!RevEmu_IsPlayerSteam(i))
|
||||
if(!NSM_IsPlayerSteam(i))
|
||||
Format(sBuffer, sizeof(sBuffer), "%s\"%L\"[NOSTEAM] is possibly using a VPN (%s).\n", sBuffer, i, sIP);
|
||||
else
|
||||
Format(sBuffer, sizeof(sBuffer), "%s\"%L\"[STEAM] is possibly using a VPN (%s).\n", sBuffer, i, sIP);
|
||||
@ -193,7 +193,7 @@ public int OnClientPostAdminCheck_OnTransferResponse(char[] sData, int iSerial)
|
||||
{
|
||||
if(IsValidClient(i) && CheckCommandAccess(i, "sm_vpn", ADMFLAG_RCON))
|
||||
{
|
||||
if(!RevEmu_IsPlayerSteam(client))
|
||||
if(!NSM_IsPlayerSteam(client))
|
||||
{
|
||||
CPrintToChat(i, "{green}[SM]{default} %L[NOSTEAM] is possibly using a {red}VPN {default}(IP: %s). Client will be kicked.", client, sIP);
|
||||
KickClient(client, "VPN not allowed");
|
||||
|
Loading…
Reference in New Issue
Block a user