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.");
}
}