Arrest Command
#1

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)