toribio

toribio

Mar 21st, 2009
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. public PrepararContagem()
  2. {
  3.     SetTimer("Contagem", 2000, false);
  4.     return 1;
  5. }
  6.  
  7. public Contagem()
  8. {
  9.     if(Contar > 0)
  10.     {
  11.         for(new i; i < MAX_PLAYERS; i++)
  12.         {
  13.             if(JogadoresNoPaintBall[i] == 1 && IsPlayerConnected(i))
  14.             {
  15.                 GameTextForPlayer(i, ContarTexto[Contar-1], 999, 3);
  16.                 TogglePlayerControllable(i, false);
  17.             }
  18.         }
  19.         Contar--;
  20.         SetTimer("Contagem", 1000, false);
  21.     }
  22.     else
  23.     {
  24.         for(new i; i < MAX_PLAYERS; i++)
  25.         {
  26.             if(JogadoresNoPaintBall[i] == 1 && IsPlayerConnected(i))
  27.             {
  28.                 GameTextForPlayer(i, "~g~Vai! Vai! Vai!", 999, 5);
  29.                 TogglePlayerControllable(i, true);
  30.             }
  31.         }
  32.         Contar = 5;
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment