02.12.2012, 16:29
I want to know how to continue a timer, such as when you /jail or for a paycheck?
And I don't want to use the gettime function.
And I don't want to use the gettime function.
forward function();
SetTimer("function", 1000, true); // Set a repeated timer of 1000 miliseconds (1 second)
public function()
{
print("Function has been called.");
}
forward function(numb);
new no = 20;
new Timer = SetTimerEx("function", 1000, true,"d",no); // Set a repeated timer of 1000 miliseconds (1 second)
public function(numb)
{
if(numb == 0)
{
KillTimer(Timer);
}
print("Value:%d");
numb--;
}
LolWut?
Can you tell me how I'd make a payday system and the timer would continue when the player logs in? |