Next Game not working.
#1

After the server restarts.
I set the NextGame variable to 1, 2, 3.

But it didn't work. The next game has not been loaded.
The game didn't changed.

I mean like in Minimission, Minigames.

I tried this.

pawn Code:
public RestartForNextGame()
{
    if(NextGame == 0)
    {
        SendClientMessageToAll(COLOR_PINK, "Next game will be ''Minigun Madness''");
        NextGame = 1;
        SendRconCommand("gmx");
    }
    else if(NextGame == 1)
    {
        SendClientMessageToAll(COLOR_PINK, "Next game will be ''Cops'n'Gangs''");
        NextGame = 2;
        SendRconCommand("gmx");
    }
    else if(NextGame == 2)
    {
        SendClientMessageToAll(COLOR_PINK, "Next game will be ''Freighter''");
        NextGame = 3;
        SendRconCommand("gmx");
    }
    SendRconCommand("changemode blank2"); //even if i remove this
    SendRconCommand("changemode Games"); //even if i remove this
    return 1;
}
It's the same

here is Example OnGameModeInit

pawn Code:
else if(NextGame == 1)
    {
        SetGameModeText("Minigun Madness");
        EndGame = SetTimer("EndAndNextGame", 1000*60*6, false);
        ShowPlayerMarkers(0);
        new i, j;
        AddPlayerClass(250, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
        for (i = 0, j = sizeof(gMinigunPickups); i < j; i++)
        {
            AddStaticPickup(362, 15, gMinigunPickups[i][PickupX], gMinigunPickups[i][PickupY], gMinigunPickups[i][PickupZ]);
        }
        for (i = 0, j = sizeof(gParachutePickups); i < j; i++)
        {
            AddStaticPickup(371, 15, gParachutePickups[i][PickupX], gParachutePickups[i][PickupY], gParachutePickups[i][PickupZ]);
        }
    }
Any idea how to change it to next game?
Reply
#2

Romel,Can you share this script after it fix....thats what i want to add into my server....
sorry cause i cant help u.....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)