SA-MP Forums Archive
Timer Help Please - 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 Help Please (/showthread.php?tid=537357)



Timer Help Please - FisherMan - 15.09.2014

Hey, Guys
I want to make a minute timer for the jail but i dont know how?
Like this 1:30.


Re: Timer Help Please - FisherMan - 15.09.2014

Help Please!


Re: Timer Help Please - FisherMan - 15.09.2014

Bumb :/


Re: Timer Help Please - MikeEd - 15.09.2014

First of this isn't a script request thread/board. But for the sake of helping, here you go:

pawn Код:
forward Unjail(playerid);
public Unjail(playerid)
{
//unjail functions here for eg. SetPlayerWantedLevel(playerid,0); Do what ever you want here
return 1;
}

//use this in your /jail command

SetTimerEx("Unjail", 60000, 1, "i", playerid));// 1 second = 1000(milliseconds)