Thread: [CSGO] Gloves
View Single Post
Sw33T3R
AlliedModders Donor
Join Date: Mar 2014
Old 01-30-2019 , 06:59   Re: [CSGO] Gloves
Reply With Quote #90

Hello @kgns
How can i add a delay for equipping gloves on player start?
I tried by adding a timer but gloves are not added to player

Code:
public void Event_PlayerSpawn(Event event, const char[] name, bool dontBroadcast)
{
	CreateTimer(3.0, LoadStuff);
}

public Action LoadStuff(Handle timer, Event event)
{
	int clientIndex = GetClientOfUserId(event.GetInt("userid"));
	if(IsValidClient(clientIndex))
	{
		GivePlayerGloves(clientIndex);
	}
}
Sw33T3R is offline