31.01.2010, 06:25
hey i have my Cod4 samp server and i want it to change gamemode every 20 mins automaticly change grom GameMode0 to GameMode1
so i tryed to make it and it turned out lik this: (it didnt work)
can anyone have a look at this or change it and tell me why it isnt working
Thanks: Flake
so i tryed to make it and it turned out lik this: (it didnt work)
Код:
//ongamemodeint SetTimer("ResetServer", 300000, 1); //elsewere forward Restart(); forward mapname(); forward ResetServer(); public OVER() { GameTextForAll("~r~ Time Limit Reached ~b~ Please Wait....", 2500 , 0); SetTimer("Restart", 10000 , 0); } public Restart() { GameTextForAll("~g~ Next Round~r~...", 2500, 0); SendRconCommand("changemode lvdm2"); // /gmx will just reload the mode currently loaded. return 1; } public mapname() { SendRconCommand("lvdm2"); return 1; }
Thanks: Flake