SA-MP Forums Archive
Can't make that jail thing. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Can't make that jail thing. (/showthread.php?tid=94453)



Can't make that jail thing. - Erkan - 30.08.2009

How to make a Jail time?, I use this code for my jail

Код:
if(strcmp("/jailtime",cmdtext,true) == 0)
{
format(string,sizeof(string)," %d Seconds",PlayerData[playerid][Prison]);
SendClientMessage(playerid,WHITE,string);
return 1;
}
But, I want that seconds should go down, not only stay at 60 or 120.

Any ideas?


Re: Can't make that jail thing. - ilikepie2221 - 30.08.2009

Try using a timer.


Re: Can't make that jail thing. - craponnaruto - 30.08.2009

More like this timer https://sampwiki.blast.hk/wiki/SetTimer


Re: Can't make that jail thing. - Erkan - 30.08.2009

It can't work with SetTimer, I try SetTimerEx.