Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.81 KB | None | 0 0
  1. publics CountDuel()
  2. {
  3.     foreach(Player, i)
  4.     {
  5.         if(Duel[i][dDuel] == 1)
  6.         {
  7.             if(Countmp > 0)
  8.             {
  9.                 new string[150];
  10.                 format(string, sizeof(string), "~g~%d", Countmp);
  11.                 GameTextForPlayer(i, string, 500, 0);
  12.                 /*TogglePlayerControllable(i, 0);
  13.                 if(Countmp == 5) GameTextForPlayer(i, "~g~5", 200, 0);
  14.                 if(Countmp == 4) GameTextForPlayer(i, "~g~4", 200, 0);
  15.                 if(Countmp == 3) GameTextForPlayer(i, "~g~3", 200, 0);
  16.                 if(Countmp == 2) GameTextForPlayer(i, "~g~2", 200, 0);
  17.                 if(Countmp == 1) GameTextForPlayer(i, "~g~1", 200, 0);*/
  18.             }
  19.             else
  20.             {
  21.                 TogglePlayerControllable(i, true);
  22.                 GameTextForPlayer(i, "~y~Fight!", 2500, 0);
  23.                 PlayerPlaySound(i, 3200, 0.0, 0.0, 0.0);
  24.             }
  25.         }
  26.     }
  27.     Countmp--;
  28.     if(Countmp >= 0) SetTimer("CountDuel", 1000, false);
  29.     return true;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement