10.04.2009, 20:33
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:
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; }