View Single Post
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 12-15-2018 , 09:01   Re: [CS GO] client for start_round event
Reply With Quote #8

Quote:
Originally Posted by Indarello View Post
Code:
Handle h_Timer;

public void Event_RoundStart(Event event, const char[] name, bool dontBroadcast)
{
	h_Timer = CreateTimer(3.0, UpdateDelay, _, TIMER_REPEAT);
}

/*********************************
 *  Public Timers
 *********************************/
public Action UpdateDelay(Handle timer, any serial)
{
	for (int i = 1; i <= MaxClients; i++)
	{
		if (IsClientInGame(i))
		{
			// do something crazy here
		}
	}
}

public void Event_RoundEnd(Event event, const char[] name, bool dontBroadcast)
{
	delete h_Timer;
}
__________________
Ilusion9 is offline