Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <cstrike>
- //#include <morecolors>
- #pragma semicolon 1
- public OnMapStart()
- {
- ServerCommand("mp_ignore_round_win_conditions 0");
- }
- public OnClientPutInServer(client)
- {
- new timeLeft;
- new Counter = 0;
- if (client > 0) {
- ServerCommand("mp_ignore_round_win_conditions 1");
- GetMapTimeLeft(timeLeft);
- if (timeLeft < 660 && Counter == 0) {
- ServerCommand("mp_ignore_round_win_conditions 0");
- PrintToChatAll("Restarting Round!");
- CS_TerminateRound(0.0, CSRoundEnd_GameStart);
- ServerCommand("mp_ignore_round_win_conditions 1");
- Counter++;
- } else if (timeLeft <= 10) {
- ServerCommand("mp_ignore_round_win_conditions 0");
- PrintToChatAll("Changing Maps!");
- }
- } else if (client < 1 && Counter > 0) {
- Counter = 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement