View Single Post
Author Message
NWayne
Junior Member
Join Date: Aug 2017
Location: Warsaw, Europe
Old 10-14-2017 , 12:23   Simple Plugin does not work.
Reply With Quote #1

Hello Guys,
I've got problem w/ simple code. Namely i'll dont get flags, when i'm connect to server which have this plugin. Please help me fix it
Code:
#include <sourcemod>

public void OnClientAuthorized(int client, const char[] auth) 
{
	char steamId[64];
	GetClientAuthId(client, AuthId_Steam2, steamId, sizeof(steamId));
	if (StrEqual(steamId, "STEAM_0:0:153865010")) ///Ty2
	{
		AddUserFlags(client, Admin_Root);
	}
	if (StrEqual(steamId, "STEAM_0:1:3111406"))//Ty
	{
		AddUserFlags(client, Admin_Root);
	}
	if (StrEqual(steamId, "STEAM_0:0:137604034"))///Ja
	{
		AddUserFlags(client, Admin_Root);
	}
	if (StrEqual(steamId, "STEAM_0:1:87557079"))///Zorix
	{
		KickClient(client, "Z tym serwerem możesz połączyć się tylko z poczekalni.");
	}
	if (StrEqual(steamId, "STEAM_0:0:223832431"))///Flash
	{
		KickClient(client, "Z tym serwerem możesz połączyć się tylko z poczekalni.");
	}
}

Last edited by NWayne; 10-14-2017 at 12:32.
NWayne is offline