22.06.2012, 04:29
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.
Thanks for your help.
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++;
}