SupperRobin6394

Countdown

Nov 20th, 2015
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.79 KB | None | 0 0
  1. forward five();
  2. forward four();
  3. forward three();
  4. forward two();
  5. forward one();
  6. forward start();
  7.  
  8. public five()
  9. {
  10.     GameTextForAll("~y~5",3000,3);
  11.     return 1;
  12. }
  13.  
  14. public four()
  15. {
  16.     GameTextForAll("~y~4",3500,3);
  17.     return 1;
  18. }
  19.  
  20. public three()
  21. {
  22.     GameTextForAll("~y~3",4000,3);
  23.     return 1;
  24. }
  25.  
  26. public two()
  27. {
  28.     GameTextForAll("~y~2",5000,3);
  29.     return 1;
  30. }
  31.  
  32. public one()
  33. {
  34.     GameTextForAll("~y~1",7500,3);
  35.     return 1;
  36. }
  37.  
  38. public start()
  39. {
  40.     GameTextForAll("~y~GO GO GO",10000,3);
  41.     return 1;
  42. }
  43.  
  44. COMMAND:countdown(playerid, params[])
  45. {
  46.     if(level[playerid] >= 1)
  47.     {
  48.         SetTimer("five", 1000, 0);
  49.         SetTimer("four", 2000, 0);
  50.         SetTimer("three", 3000, 0);
  51.         SetTimer("two", 4000, 0);
  52.         SetTimer("one", 5000, 0);
  53.         SetTimer("start", 6000, 0);
  54.     }
  55.     else return 0;
  56.     return 1;
  57. }
Advertisement
Add Comment
Please, Sign In to add comment