Robbery time - 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: Robbery time (
/showthread.php?tid=404636)
Robbery time -
mailu - 03.01.2013
Hallo!
I was trying to figure how to do this:
I have some robberies but I want to set a time like 30 secs to sucess the robery
Hope you understand
Re: Robbery time -
ThePhenix - 03.01.2013
You could use SetTimer function. And call it when someone is attempting to rob.
PHP код:
forward RobberyTimer();
public OnGameModeInit()
{
SetTimer("RobberyTimer", 30000, false);
return 1;
}
public RobberyTimer()
{
return 1;
}
Re: Robbery time -
GhostDeath - 03.01.2013
nicely said
Re: Robbery time -
mailu - 03.01.2013
But how do I make the text to show? Like:
Robbery time left : 25 seconds?