Safe Gamemode Restart - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Safe Gamemode Restart (
/showthread.php?tid=112699)
Safe Gamemode Restart -
Zeromanster - 09.12.2009
What do i need to destroy if i would like to have a safe gamemode restart without any bugs ?
Thanks.
Re: Safe Gamemode Restart -
dice7 - 09.12.2009
Nothing, just gmx.
And to be on the safe side
pawn Код:
public OnGameModeInit()
{
SendRconCommand("unloadfs myadminscript");
SendRconCommand("loadfs myadminscript");
//etc
}
Re: Safe Gamemode Restart -
Zeromanster - 09.12.2009
Quote:
Originally Posted by dice7
Nothing, just gmx.
And to be on the safe side
pawn Код:
public OnGameModeInit() { SendRconCommand("unloadfs myadminscript"); SendRconCommand("loadfs myadminscript"); //etc }
|
How about objects, 3dtext, timers ? Or is it automatic in 0.3 ? (in 0.2X i had to destroy all of it).
Re: Safe Gamemode Restart -
Sergei - 09.12.2009
GameModeExit?
The best would be to kill SA:MP server process and run it again (no way that anything doesn't get deleted).
Re: Safe Gamemode Restart -
Daren_Jacobson - 09.12.2009
Quote:
Originally Posted by $ЂЯĢ
GameModeExit?
The best would be to kill SA:MP server process and run it again (no way that anything doesn't get deleted).
|
then people on your server have to reconnect.
Re: Safe Gamemode Restart -
Mikep. - 10.12.2009
No they don't.
Crash the server by trying to write to a folder that doesn't exist, it will crash the server.
Re: Safe Gamemode Restart -
patchkinson - 10.12.2009
years!
or simply do /rcon gmx
!!
loooooool!
Or use an admin script that allows you too
create a simple admin script that
pawn Код:
IfIsPlayerAdmin /restart SendRconCommand("gmx"); else SendClientMessage(playerid,red,"You need to be logged in as RCON");
Pawn is amazing with such little things huh!