Advertisement
Guest User

Untitled

a guest
Aug 26th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <sourcemod>
  2. #include <cstrike>
  3. //#include <morecolors>
  4. #pragma semicolon 1
  5.  
  6. public OnMapStart()
  7. {
  8. ServerCommand("mp_ignore_round_win_conditions 0");
  9. }
  10.  
  11. public OnClientPutInServer(client)
  12. {
  13. new timeLeft;
  14. new Counter = 0;
  15. if (client > 0) {
  16. ServerCommand("mp_ignore_round_win_conditions 1");
  17. GetMapTimeLeft(timeLeft);
  18. if (timeLeft < 660 && Counter == 0) {
  19. ServerCommand("mp_ignore_round_win_conditions 0");
  20. PrintToChatAll("Restarting Round!");
  21. CS_TerminateRound(0.0, CSRoundEnd_GameStart);
  22. ServerCommand("mp_ignore_round_win_conditions 1");
  23. Counter++;
  24. } else if (timeLeft <= 10) {
  25. ServerCommand("mp_ignore_round_win_conditions 0");
  26. PrintToChatAll("Changing Maps!");
  27. }
  28. } else if (client < 1 && Counter > 0) {
  29. Counter = 0;
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement