GMX Command
#1

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

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

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

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

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

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


Forum Jump:


Users browsing this thread: 3 Guest(s)