Code Help/Need Code
#1

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.
Reply
#2

Remove this

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)