View Single Post
Author Message
maza51
Senior Member
Join Date: Mar 2010
Old 01-07-2011 , 06:03   help, GetClientAuthString
Reply With Quote #1

does not work?
Code:
#include <sourcemod>
#include <sdkhooks>
#include <sdktools>

public OnPluginStart()
{
	HookEvent("round_start", Event_RoundStart);
}


public Event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
	new client = GetClientOfUserId(GetEventInt(event, "userid"));
	decl String:gAuth[21]
	GetClientAuthString( client, gAuth, sizeof( gAuth ) );
	if(!StrEqual(gAuth, "STEAM_0:0:00000", false))
	{
		PrintToChatAll("lol");
	}
}
maza51 is offline