30.03.2015, 01:57
Dear all,
I just started to learn scripting in pawno but got a small problem with the following script,
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,
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;
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,