Advertisement
Guest User

Contagem

a guest
Jul 31st, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. /* Todo Credito a iRafaelMendes o Delicia Da ScriptSamp 2 Bj's e Um Abraço....
  2.  
  3. + Amor - Recalque !!!!
  4. */
  5.  
  6. // Nas Suas News
  7.  
  8. new TimeSS = 180, TimeSS1 = 120, TimeSS2 = 60, TimeSS3 = 3, strrafita[10];
  9.  
  10. // Nos Seus Comandos
  11.  
  12. if(strcmp(cmd, "/180", true) == 0)
  13. {
  14. if (PlayerInfo[playerid][pAdmin] >= 3) // Level 3 Acima Pode Usar o CMD Quiser Mude, Troque o 3 Por Outro
  15. {
  16. SendClientMessageToAll(-1,"Um Admin Iniciou a Contagem De 180 Segundos");
  17. ContagemSS();
  18. return true;
  19. }
  20. }
  21. if(strcmp(cmd, "/120", true) == 0)
  22. {
  23. if (PlayerInfo[playerid][pAdmin] >= 3)
  24. {
  25. SendClientMessageToAll(-1,"Um Admin Iniciou a Contagem De 120 Segundos");
  26. ContagemSS1();
  27. return true;
  28. }
  29. }
  30. if(strcmp(cmd, "/60", true) == 0)
  31. {
  32. if (PlayerInfo[playerid][pAdmin] >= 3)
  33. {
  34. SendClientMessageToAll(-1,"Um Admin Iniciou a Contagem De 60 Segundos");
  35. ContagemSS2();
  36. return true;
  37. }
  38. }
  39. if(strcmp(cmd, "/stopcontagem", true) == 0)
  40. {
  41. if (PlayerInfo[playerid][pAdmin] >= 3)
  42. {
  43. SendClientMessageToAll(-1,"Os Admins Pararam a Contagem, Aguarde 3 Segundos");
  44. ContagemSS3();
  45. return true;
  46. }
  47. }
  48.  
  49. // No Final Do GameMode
  50.  
  51. forward ContagemSS();
  52. public ContagemSS()
  53. {
  54. if(TimeSS == 0)
  55. {
  56. format(strrafita, sizeof(strrafita),"%d", TimeSS);
  57. GameTextForAll("~p~| ~g~Go Go Go ~p~|", 1000, 3);
  58. TimeSS = 180;
  59. return false;
  60. }
  61. format(strrafita, sizeof(strrafita),"%d", TimeSS);
  62. GameTextForAll(strrafita,1000,3);
  63. SetTimer("ContagemSS", 1000, false);
  64. return TimeSS--;
  65. }
  66. forward ContagemSS1();
  67. public ContagemSS1()
  68. {
  69. if(TimeSS1 == 0)
  70. {
  71. format(strrafita, sizeof(strrafita),"%d", TimeSS1);
  72. GameTextForAll("~p~| ~g~Go Go Go ~p~|", 1000, 3);
  73. TimeSS1 = 120;
  74. return false;
  75. }
  76. format(strrafita, sizeof(strrafita),"%d", TimeSS1);
  77. GameTextForAll(strrafita,1000,3);
  78. SetTimer("ContagemSS1", 1000, false);
  79. return TimeSS1--;
  80. }
  81. forward ContagemSS2();
  82. public ContagemSS2()
  83. {
  84. if(TimeSS2 == 0)
  85. {
  86. format(strrafita, sizeof(strrafita),"%d", TimeSS2);
  87. GameTextForAll("~p~| ~g~Go Go Go ~p~|", 1000, 3);
  88. TimeSS2 = 60;
  89. return false;
  90. }
  91. format(strrafita, sizeof(strrafita),"%d", TimeSS2);
  92. GameTextForAll(strrafita,1000,3);
  93. SetTimer("ContagemSS2", 1000, false);
  94. return TimeSS2--;
  95. }
  96. forward ContagemSS3();
  97. public ContagemSS3()
  98. {
  99. if(TimeSS3 == 0)
  100. {
  101. format(strrafita, sizeof(strrafita),"%d", TimeSS3);
  102. GameTextForAll("Parou", 1000, 3);
  103. TimeSS = 0;
  104. TimeSS1 = 0;
  105. TimeSS2 = 0;
  106. TimeSS3 = 0;
  107. return false;
  108. }
  109. format(strrafita, sizeof(strrafita),"%d", TimeSS3);
  110. GameTextForAll(strrafita,1000,3);
  111. SetTimer("ContagemSS3", 1000, false);
  112. return TimeSS3--;
  113. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement