[Ajuda] Reiniciar Servidor
#1

Eae...

Qual й a funзгo que faz o server reiniciar sem desligar e ligar o samp-server.

Mas quero que ele carregue as novas atualizaзхes.

Se alguem souber me ajude pfv.
Reply
#2

loga na rcon e coloca /rcon gmx
Reply
#3

Comando para Administrador logado na rcon ...
pawn Код:
CMD:gmx(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
         format(String, sizeof(String), "O Admin %s Deu GMX no servidor, em alguns segundos ele serб reiniciado", Nome(playerid));
         SendClientMessageToAll(AZUL_CLARO, String);
         SendRconCommand("gmx");
    }
    return 1;
}
Reply
#4

Entre no seu servidor e digite:

/rcon login SuaSenha

/rcon gmx
Reply
#5

ou digite gmx no console.
Reply
#6

Vlw a todos. Quando chegar a casa vo fazer isso.
Reply
#7

Quote:
Originally Posted by HatedS
Посмотреть сообщение
Comando para Administrador logado na rcon ...
pawn Код:
CMD:gmx(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
         format(String, sizeof(String), "O Admin %s Deu GMX no servidor, em alguns segundos ele serб reiniciado", Nome(playerid));
         SendClientMessageToAll(AZUL_CLARO, String);
         SendRconCommand("gmx");
    }
    return 1;
}
segundos?

isso e na hora..
Reply
#8

Код:
    if(strcmp(cmd, "/gmx", true) == 0 || strcmp(cmd, "/restart", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        new string22[128];
         	if(PlayerInfo[playerid][pAdmin] > 1340)
			{
			    if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342) { return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/pa)"); }
				for(new i = 0; i < MAX_PLAYERS; i++)
				{
		    		if(IsPlayerConnected(i))
		    		{ OnPlayerSave(i); }
				}
				GameTextForPlayer(playerid, "~r~Reiniciando~n~~r~ Aguarde... ", 3000, 3);
				//SendClientMessage(playerid, 0x90B6FFAA, "Reiniciando o Servidor, Aguarde...");
				format(string22, sizeof(string22), "Reiniciando o Servidor, Por Favor Aguarde...");
				SendClientMessageToAll(0x90B6FFAA, string22);
				GameModeExitFunc();
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem autorizaзгo para dar GMX!");
			}
		}
		return 1;
	}
Reply
#9

Quote:
Originally Posted by iLostec
Посмотреть сообщение
Код:
    if(strcmp(cmd, "/gmx", true) == 0 || strcmp(cmd, "/restart", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        new string22[128];
         	if(PlayerInfo[playerid][pAdmin] > 1340)
			{
			    if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342) { return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/pa)"); }
				for(new i = 0; i < MAX_PLAYERS; i++)
				{
		    		if(IsPlayerConnected(i))
		    		{ OnPlayerSave(i); }
				}
				GameTextForPlayer(playerid, "~r~Reiniciando~n~~r~ Aguarde... ", 3000, 3);
				//SendClientMessage(playerid, 0x90B6FFAA, "Reiniciando o Servidor, Aguarde...");
				format(string22, sizeof(string22), "Reiniciando o Servidor, Por Favor Aguarde...");
				SendClientMessageToAll(0x90B6FFAA, string22);
				GameModeExitFunc();
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem autorizaзгo para dar GMX!");
			}
		}
		return 1;
	}
Cara nгo adianta pegar do seu 'GM' e postar, porque se ele colocar vai causar vбrios erros, existe muitas coisas neste code sem estar definida:

COLOR_GRAD1
pAdmin
GameModeExitFunc
admtrampando
OnPlayerSave
Reply
#10

Quote:
Originally Posted by PT
Посмотреть сообщение
segundos?

isso e na hora..
O servidor nгo reinicia na hora. Quando vocк aperta reiniciar no seu PC, ele reinicia na hora? Nгo, ele desliga primeiro, entгo quando ele ligar ele foi reiniciado.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)