Raised This Month: $51 Target: $400
 12% 

Simple Plugin does not work.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode