Timers
#1

Hey everyone.

I have searched for similar problems to which i am having but can not get any useful information from them.

All the timers i do are not repeated so they do their job once and thats it. But the problem i am having is when they do something like send a client message, it will send it 10-15 times instead of once.

This is causing lag and i am not happy with the system im making because of this.

Here is an example timer:
Code:
public PowerOverride()
{
	for(new i = 0; i < MAX_PLAYERS; i ++) {
	if(gTeam[i] == TEAM_TERRORIST && PlantingC4[i] == 1) {

             CreateExplosion(928.0627, 2523.3984, 10.8203, 2, 10.0); // Explosion 1
		CreateExplosion(934.5035, 2522.9822, 13.2188, 2, 10.0); // Explosion 2
		CreateExplosion(939.7049, 2524.6848, 10.8203, 2, 10.0); // Explosion 3
		CreateExplosion(945.2598, 2521.1301, 14.4470, 2, 10.0); // Explosion 4
		CreateExplosion(925.4567, 2519.6956, 10.8203, 2, 10.0); // Explosion 5
		SendClientMessage(i, COLOR_INFO_BLUE, "Test1");
		SetTimer("PowerDown", 2000, false);
	}
	}
	
	return 1;
}
Reply


Messages In This Thread
Timers - by streetzuk - 10.04.2009, 20:33
Re: Timers - by Weirdosport - 10.04.2009, 20:37
Re: Timers - by streetzuk - 10.04.2009, 20:42
Re: Timers - by Robbin237 - 11.04.2009, 10:41
Re: Timers - by ICECOLDKILLAK8 - 11.04.2009, 10:48
Re: Timers - by Nubotron - 11.04.2009, 10:50
Re: Timers - by ICECOLDKILLAK8 - 11.04.2009, 10:51
Re: Timers - by streetzuk - 11.04.2009, 10:55
Re: Timers - by ICECOLDKILLAK8 - 11.04.2009, 10:57
Re: Timers - by Nubotron - 11.04.2009, 10:57

Forum Jump:


Users browsing this thread: 1 Guest(s)