SA-MP Forums Archive
Code Help/Need Code - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Code Help/Need Code (/showthread.php?tid=401151)



Code Help/Need Code - ElCowboy - 21.12.2012

Hi, I recently got this mini-mission like chaning gm code and I have a problem.

At:

Quote:

public GameModeExitFunc(playerid) {
SendRconCommand("DeltaServerBeta"); // You can put your 2nd GM name. Just Replace "Your GM2 Here"
GameTextForAll("~y~Changing Gamemode ~n~ ~w~Please Wait Players....",5000,1); // Gamemode changing message
KillTimer(GameTimer);
TextDrawHideForPlayer(playerid,Timer);

}

I thought at the code above will make the server restart after the timer was up, but nothing happen, only the text came up.

link of the Changing Mini-Mission like mission: https://sampforum.blast.hk/showthread.php?tid=360181

Please help me.


Re: Code Help/Need Code - JaKe Elite - 21.12.2012

Remove this

pawn Код:
SendRconCommand("DeltaServerBeta");
replace it with this

pawn Код:
SendRconCommand("changemode YourGameModeHere"); //replace the "YourGameModeHere" with your own gamemode
SendRconCommand("gmx"); //restart