How to return to Gamemode 0, after it goes through all the modes?
#1

Hello, I'm currently developing a Mini-game type server. There's currently 6 modes. When the server starts up, it goes through mode 0-5 and then it keeps repeating 5 over and over, after every cycle. After gamemode 5, I want it to restart and go back to mode 0.

I hope you understand what I'm trying to do, here's some of my code.
pawn Код:
forward ChangeMode();
public ChangeMode()
{
        if(CurrentGamemode  == 0)
    {
        ServerMinutes = 0;
        ServerSeconds = 10;
    }
        if(CurrentGamemode  == 1)
    {
        ServerMinutes = 0;
        ServerSeconds = 10;
    }
        if(CurrentGamemode  == 2)
    {
        ServerMinutes = 0;
        ServerSeconds = 10;
    }
        if(CurrentGamemode  == 3)
    {
        ServerMinutes = 0;
        ServerSeconds = 10;
    }
        if(CurrentGamemode  == 4)
    {
        ServerMinutes = 0;
        ServerSeconds = 10;
    }
        if(CurrentGamemode == 5)
    {
        ServerMinutes = 0;
        ServerSeconds = 10;
    }
    else
    {
        CurrentGamemode++;
    }
Thanks for your help.
Reply


Messages In This Thread
How to return to Gamemode 0, after it goes through all the modes? - by rangerxxll - 22.06.2012, 04:29
Re: How to return to Gamemode 0, after it goes through all the modes? - by [MM]RoXoR[FS] - 22.06.2012, 04:53
Re: How to return to Gamemode 0, after it goes through all the modes? - by ReneG - 22.06.2012, 05:06
Re: How to return to Gamemode 0, after it goes through all the modes? - by rangerxxll - 22.06.2012, 05:30

Forum Jump:


Users browsing this thread: 1 Guest(s)