Checking for timer at 0
#2

Well, you need a new function for that:
pawn Код:
SetTimer("PressJump", 15000, 0);


forward PressJump();
public PressJump()
{
       print("Timer ended");
}
Or you can use SetTimerEx for every player:
pawn Код:
SetTimerEx("PressJump", 15000, false, "i", playerid);


forward PressJump(playerid);
public PressJump(playerid)
{
       SendClientMessage(playerid, -1, "The timer ended.");
}
So basically, whatever you want to happen when the timer ends, you put it in the "PressJump" function and that'll happen when the timer end occurs.
Reply


Messages In This Thread
Checking for timer at 0 - by Joshb93 - 20.11.2011, 05:36
Re: Checking for timer at 0 - by antonio112 - 20.11.2011, 05:41
Re: Checking for timer at 0 - by Joshb93 - 20.11.2011, 05:47
Re: Checking for timer at 0 - by [L3th4l] - 20.11.2011, 05:52
Re: Checking for timer at 0 - by cessil - 20.11.2011, 05:53
Re: Checking for timer at 0 - by antonio112 - 20.11.2011, 06:05

Forum Jump:


Users browsing this thread: 2 Guest(s)