SA-MP Forums Archive
Arrest Command - 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: Arrest Command (/showthread.php?tid=194013)



Arrest Command - sekol - 28.11.2010

So it's first time i try to make /arrest cmd, and i got a problem. I want to store player jail time in PVar but i don't know how to make this PVar decrease every second by 1. Yea i could do it like this
pawn Код:
BLa Bla Bla
SetPVarInt(playerid, "JailTime", jailtime)
SetTimerEx("Jail", 1000, 1, "i", playerid);
BLA BLA BLA

public Jail(playerid);
{
  SetPVarInt(playerid, "Jail", GetPVarInt(playerid, "Jail")+1);
other stuff here :d
But it looks noobish to me Are there any better ways?