SA-MP Forums Archive
GMX Command - 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: GMX Command (/showthread.php?tid=486447)



GMX Command - FilesMAker - 08.01.2014

As i found on forums : [/rcon gmx] restart server
But on wiki.samp I found : /rcon gmx - Will load the next gamemode in server.cfg.

This is not my problem :
My problem is when I send a GMX command from Admin FilterScript, some scripts doesn't load.

In server.cfg
Quote:

gamemode0 [FMGS]GMod 0
filterscripts [FMGS]Admin anims [FMGS]Derby [FMGS]Mission [FMGS]Map END

After GMX, scripts loaded are :
The GameMode : [FMGS]GMod
and the admin FilterScript : [FMGS]Admin


Re: GMX Command - ACI - 08.01.2014

Hello, please replace the text with your settings your server.cfg:

Код:
gamemode0 [FMGS]GMod 1
filterscripts [FMGS]Admin anims [FMGS]Derby [FMGS]Mission [FMGS]Map END
If this doesn't solve your problem, there might be a spelling mistake.


Re: GMX Command - CutX - 08.01.2014

you could add some rcon cmd's to OnGamemodeInit and remove the filterscripts from server cfg and load them directly at OnGamemodeInit

something like
pawn Код:
public OnGamemodeInit()
{
    SendRconCommand("loadfs FSNAME_HERE");
    SendRconCommand("loadfs FSNAME_HERE");
    //and so on, load them from here
    //but well.... that's kinda weird somehow ^^
    return 1;
}
really weird... when i restart a server using gmx, it loadfs all of the filterscripts from server cfg.
Maybe it really is cuz youre calling the restart trough a filterscript.
try this, login as rcon admin and do /rcon gmx
without using that admin filterscript.


Re: GMX Command - Pottus - 08.01.2014

Your better off not using gmx at all it causes client bugs best way is to always restart the server.


Re : GMX Command - FilesMAker - 08.01.2014

Thanks to you guy.
I'm trying to organize my scripts. I already did this command in OnGameModeInit():
Quote:

SendRconCommand("loadfs FSNAME_HERE");

But it causes some bugs on some scripts :
Like textdraw changing position.


Re : Re: GMX Command - FilesMAker - 08.01.2014

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Your better off not using gmx at all it causes client bugs best way is to always restart the server.
When i restart from pannel, the server kick all players then restart.
Then I lose all players on one click.