Server restart
#1

I was wondering if there was a script like :

pawn Код:
public OnServerRestart(playerid)
witch would set the host name ( Server Name to something else ) like :

pawn Код:
public OnServerRestart(playerid)

SetHostName("International Trucking [Restarting ...]")
Any way to make something like this ?

Regards in advance
Reply
#2

Quote:
Originally Posted by Private200
Посмотреть сообщение
I was wondering if there was a script like :

pawn Код:
public OnServerRestart(playerid)
Код:
public OnGameModeInit()?
Quote:
Originally Posted by Private200
witch would set the host name ( Server Name to something else ) like :

SetHostName("International Trucking [Restarting ...]")
Код:
SendRconCommand("hostname International Trucking [Restarting ...]");
Reply
#3

You could do
pawn Код:
public OnRconCommand(cmd[])
{
    if( !strcmp( cmd, "gmx", true ))
    {
        SetHostName("International Trucking [Restarting ...]");
        return true;
    }
    return false;
}
Reply
#4

Quote:
Originally Posted by ******
Посмотреть сообщение
OnRconCommand doesn't get sent "gmx" because it is processed by the server. Try OnGameModeExit, or use a custom "gmx" command.
Not even if you do /rcon gmx in-game?
Reply
#5

Okay thanks for the information .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)