28.11.2010, 10:42
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
But it looks noobish to me Are there any better ways?
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