I need help
#1

How to make a countdown function (like THe shop will be robbed in 14/13/12.....0 - only the numbers change )because I found only 2 tutorials on ******,both awful and bad as listed in comments ,even comments by vince or alpha were saying it's bad,so anyone could give me a good tutorial?
Reply
#2

pawn Код:
new countn, counttimer;

forward CountDown();
at the start countdown command or w/e
pawn Код:
countn = 15;
counttimer = SetTime("CountDown", 1000, true);
and somewhere
pawn Код:
public CountDown()
{
  new string[20];
  format(string, sizeof(string), "~g~%d", countn);
  GameTextForAll(string, 0, 500);
  countn--;
  if(countn <= -1)
  {
    KillTimer(counttime);
  }
  return 1;
}
I hope that works, as I just wrote it up...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)