10.07.2010, 05:09
for your timer do it like this:
pawn Код:
new timer; //define timer
public OnGameModeInit()
{
timer = SetTimer(bla, 3000, true); //Setting the timer for bla but defined as timer.
return 1;
}
public bla() //What the timer does
{
return 1;
}
public Whatever()
{
KillTimer(timer); //When you want it to be killed use this
return 1;
}