Serious Discussion about TIMERS!
#1

Hello everyone, I really want to do something like this:
Code:
public OnPlayerConnect(playerid)
{
	SetTimerEx(funcname[], 650, true:flag, "d", playerid);
	//Example:
	SetTimerEx(funcname[], 650, true:AUTO_KILL_ON_PLAYER_DISCONNECT, "d", playerid);
	return 1;
}
I'm really wondering how can I make timer that kills when player disconnect in this case?
I know that i can create some custom function where i can make enum and than for each started player timer i give a some ++ increment for createdtimers and then just kill all through loop through enum, but that is not so efficient bcuz i cannot know if it is player timer, even if i do sth like flag, i need your opinion
Reply


Messages In This Thread
Serious Discussion about TIMERS! - by NexyAG - 31.12.2018, 23:36
Re: Serious Discussion about TIMERS! - by CantBeJohn - 01.01.2019, 00:03
Re: Serious Discussion about TIMERS! - by CantBeJohn - 01.01.2019, 03:49
Re: Serious Discussion about TIMERS! - by NexyAG - 01.01.2019, 10:49
Re: Serious Discussion about TIMERS! - by Spmn - 01.01.2019, 12:21
Re: Serious Discussion about TIMERS! - by IllidanS4 - 01.01.2019, 12:46
Re: Serious Discussion about TIMERS! - by NexyAG - 01.01.2019, 13:07
Re: Serious Discussion about TIMERS! - by B3x7K - 18.01.2019, 23:44

Forum Jump:


Users browsing this thread: 3 Guest(s)