Variable that goes down by 1 per second
#6

well its easy to make variable goes -1 every x time
pawn Код:
new VariableTimer;
new Variable;

VariableTimer = SetTimer("LoverVariable", 1000, 1);

forward LoverVariable();
public LoverVariable()
{
    Variable--;
    if(Variable == 0) KillTimer(VariableTimer);
}
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...
Reply


Messages In This Thread
Variable that goes down by 1 per second - by CrazyShooterJoe - 16.10.2011, 14:09
Re: Variable that goes down by 1 per second - by SchurmanCQC - 16.10.2011, 14:10
Re: Variable that goes down by 1 per second - by CrazyShooterJoe - 16.10.2011, 14:48
Re: Variable that goes down by 1 per second - by Baboon - 16.10.2011, 14:58
Re: Variable that goes down by 1 per second - by CrazyShooterJoe - 16.10.2011, 14:59
Re: Variable that goes down by 1 per second - by DRIFT_HUNTER - 16.10.2011, 15:01

Forum Jump:


Users browsing this thread: 2 Guest(s)