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