Guest User

Fumis

a guest
Feb 22nd, 2009
1,408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. #include <a_samp>
  2. #define FILTERSCRIPT
  3. #if defined FILTERSCRIPT
  4. #define COLOR_LIGHTBLUE 0x33CCFFAA
  5. forward count2();
  6. forward count1();
  7. forward countgo();
  8. forward stop();
  9. new bool:a;
  10. new Float:X, Float:Y, Float:Z;
  11. #else
  12. #endif
  13. ////////////////////////////////////////////////////////////////////////////////
  14. public OnPlayerCommandText(playerid, cmdtext[])
  15. {
  16. if(strcmp(cmdtext,"/count",true) == 0) {
  17. new pName[30];
  18. new string[256];
  19. if (a == false)
  20. {
  21. a = true;
  22. GetPlayerName(playerid, pName, 30);
  23. format(string, 280, "*** %s started count.", pName);
  24. SendClientMessageToAll(COLOR_LIGHTBLUE, string);
  25. for(new i; i < MAX_PLAYERS; i++) {
  26. GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~ 3 ~g~-",1000,3);
  27. GetPlayerPos(i,X,Y,Z);
  28. }
  29. SetTimer("count2",1000,0);
  30. SetTimer("count1",2000,0);
  31. SetTimer("countgo",3000,0);
  32. SetTimer("stop",6000,0);
  33.  
  34. }
  35. else SendClientMessage(playerid, 0xFF9900AA, "Its allready started!");
  36. return 1;
  37. }
  38.  
  39. return 0;
  40. }
  41. ////////////////////////////////////////////////////////////////////////////////
  42. public count2()
  43. {
  44. for(new i; i < MAX_PLAYERS; i++) {
  45. GameTextForPlayer(i,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~ 2 ~g~-",1000,3);
  46. GetPlayerPos(i,X,Y,Z);
  47. }
  48. }
  49. ////////////////////////////////////////////////////////////////////////////////
  50. public count1()
  51. {
  52. for(new i; i < MAX_PLAYERS; i++) {
  53. GameTextForPlayer(i,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~ 1 ~g~-",1000,3);
  54. GetPlayerPos(i,X,Y,Z);
  55. }
  56. }
  57. ////////////////////////////////////////////////////////////////////////////////
  58. public countgo()
  59. {
  60. for(new i; i < MAX_PLAYERS; i++) {
  61. GetPlayerPos(i,X,Y,Z);
  62. GameTextForPlayer(i,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~]~g~-~g~START~g~-~y~]~g~-",1000,3);
  63. PlayerPlaySound(i,1057,X,Y,Z);
  64. }
  65. }
  66. public stop()
  67. {
  68. a = false;
  69. }
  70.  
  71. ///////////////////////
  72. // � Fumis, M_B 2009 //
  73. ///////////////////////
Advertisement
Add Comment
Please, Sign In to add comment