[HELP] Case scripting
#1

Dear all,

I just started to learn scripting in pawno but got a small problem with the following script,

Код:
        switch(Maps)
        {
        	case 0: // map1
            {
            	SetPlayerInterior(i,0);
                SendRconCommand("loadfs map1");
				Minutes =0;  // 0:40 min
				Seconds =40;  // 0:40 min
			}
            case 1: // map2
            {
            	SetPlayerInterior(i,0);
                SendRconCommand("unloadfs map1");
                SendRconCommand("loadfs map2");
				Minutes =0;  // 0:40 min
				Seconds =40;  // 0:40 min
			}
            case 2:
            {
                SendRconCommand("unloadfs map2");
                GameTextForAll("~r~Restarting server maps",6000,4);
                SendRconCommand("gmx");
                Maps = 0;
			}
		}
	}
    return 1;
Im making a basic dm server and i want that it goes from case 1 to 0 without server restarting, but till now i cant fix this.

i did now with rcon gmx so the whole server will restart and i dont like that, can one of you help me out please?

Kind regards,
FeniX,
Reply


Messages In This Thread
[HELP] Case scripting - by FeniX70 - 30.03.2015, 01:57
Re: [HELP] Case scripting - by Threshold - 30.03.2015, 03:11
Re: [HELP] Case scripting - by FeniX70 - 30.03.2015, 03:18
Re: [HELP] Case scripting - by Threshold - 30.03.2015, 03:21
Re: [HELP] Case scripting - by FeniX70 - 30.03.2015, 03:29
Re: [HELP] Case scripting - by Threshold - 30.03.2015, 03:43
Re: [HELP] Case scripting - by FeniX70 - 30.03.2015, 03:50
Re: [HELP] Case scripting - by Threshold - 30.03.2015, 03:58
Re: [HELP] Case scripting - by FeniX70 - 30.03.2015, 04:06
Re: [HELP] Case scripting - by [ABK]Antonio - 30.03.2015, 04:16

Forum Jump:


Users browsing this thread: 3 Guest(s)