Timer problem
#4

pawn Код:
static playertimer[MAX_PLAYERS];
#define TimerInterval 5000 //Type your interval here (MS)
#define reapiting 1 //You want to timer repeat? use 1 else 0
public OnPlayerConnect(playerid)
{
playertimer[playerid] = SetTimerEx("matspick", TimerInterval, reapiting, "i", playerid);
return 1;
}

public OnPlayerDisconnect(playerid)
{
KillTimer(playertimer[playerid]);
return 1;
}
Also see here: SetTimerEx
Reply


Messages In This Thread
Timer problem - by aboa - 26.12.2013, 06:42
Re: Timer problem - by Aliassassin123456 - 26.12.2013, 06:44
Re: Timer problem - by aboa - 26.12.2013, 06:47
Re: Timer problem - by Aliassassin123456 - 26.12.2013, 06:51
Re: Timer problem - by aboa - 26.12.2013, 06:51
Re: Timer problem - by aboa - 26.12.2013, 07:02

Forum Jump:


Users browsing this thread: 2 Guest(s)