removed ability for nosteamers

This commit is contained in:
jenz 2023-07-12 22:58:57 +02:00
parent 265dfce9d7
commit 97df90ed62

View File

@ -1,5 +1,6 @@
#pragma semicolon 1
#include <PlayerManager>
#include <sourcemod>
#pragma newdecls required
@ -27,7 +28,7 @@ public Plugin myinfo =
name = "UNLOZE_VIP_Test",
author = "Neon",
description = "",
version = "2.0",
version = "2.1",
url = "https://steamcommunity.com/id/n3ontm"
}
@ -174,6 +175,12 @@ public Action Command_VIP(int client, int iArgs)
if (!IsValidClient(client))
return Plugin_Handled;
if (!PM_IsPlayerSteam(client))
{
PrintToChat(client, "Nosteam cant use test vip anymore.");
return Plugin_Handled;
}
char sSteamID[32];
GetClientAuthId(client, AuthId_Steam2, sSteamID, sizeof(sSteamID));