SA-MP Forums Archive
Timer Hellp - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Timer Hellp (/showthread.php?tid=360935)



Timer Hellp - Joco5 - 19.07.2012

I did 5Missions on my gm, and now idk how to make on misssions example:
/MISSION1
and start countdowning during the mission
if countdown end say mission not complete
Anyone can help me?


Re: Timer Hellp - L.Hudson - 19.07.2012

I will show you how to make a simple timer if you need again some help feel free to ask


below main()..
..
..
..

pawn Код:
public OnPlayerSpawn(playerid)
{
    TogglePlayerControllable(playerid, 0);
    SetTimer("SimpleTimer",5000/*5 seconds in milliseconds*/, false/*it will not repeat the timer*/);
    return 1;
}

forward SimpleTimer(playerid);
public SimpleTimer(playerid)
{
    TogglePlayerControllable(playerid, 1);
    return 1;
}



Re: Timer Hellp - Joco5 - 19.07.2012

Tnx anyway