16.10.2011, 15:01
well its easy to make variable goes -1 every x time
But we dont use auto unjail like that...
We just make a public function to unjail player and set timer to call that function just once...
pawn Код:
new VariableTimer;
new Variable;
VariableTimer = SetTimer("LoverVariable", 1000, 1);
forward LoverVariable();
public LoverVariable()
{
Variable--;
if(Variable == 0) KillTimer(VariableTimer);
}
We just make a public function to unjail player and set timer to call that function just once...