[Ajuda] Reiniciar Servidor - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Reiniciar Servidor (
/showthread.php?tid=467337)
Reiniciar Servidor -
Chazika - 02.10.2013
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.
Re: Reiniciar Servidor -
JeeanK2 - 02.10.2013
loga na rcon e coloca /rcon gmx
Re: Reiniciar Servidor -
HatedS - 02.10.2013
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;
}
Re: Reiniciar Servidor -
smiiir - 02.10.2013
Entre no seu servidor e digite:
/rcon login SuaSenha
/rcon gmx
Re: Reiniciar Servidor -
.ThePro - 02.10.2013
ou digite gmx no console.
Re: Reiniciar Servidor -
Chazika - 02.10.2013
Vlw a todos. Quando chegar a casa vo fazer isso.
Re: Reiniciar Servidor -
PT - 02.10.2013
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..
Re: Reiniciar Servidor -
iLostec - 02.10.2013
Код:
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;
}
Re: Reiniciar Servidor -
smiiir - 02.10.2013
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
Re: Reiniciar Servidor -
arakuta - 02.10.2013
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.