SA-MP Forums Archive
[AJUDA] Comando - 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] Comando (/showthread.php?tid=177197)



[AJUDA] Comando - EduardoDj - 16.09.2010

Existe comando de mudar o nome do servidor?
Obs: mudar o nome do sv com um comando dentro do servidor.


Re: [AJUDA] Comando - Shelby - 16.09.2010

Isto deve ajuda-lo.

pawn Код:
if(strcmp(cmd,"/nomeserver",true)==0)
{
    new string[256],idx,tmp[256];
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)){return SendClientMessage(playerid, COLOR_GRAD2, "/nomeserver [nome]");}
    format(string, sizeof(string), "hostname %s", tmp);
    SendRconCommand(tmp);
    return 1;
}
Tambйm existe um comando RCON que faz isto:

Logue-se na RCON e use /rcon hostname [nome do servidor]


Re: [AJUDA] Comando - $_Pooweer_$ - 16.09.2010

/\ Larceny ninja xD

~

Se loga na Rcon e digita:

/rcon hostname NovoNome

Exemplo:

/rcon hostname SERVIDO DI SAMP MUIMTO LECAL


Re: [AJUDA] Comando - EduardoDj - 16.09.2010

Quote:
Originally Posted by Larceny
Посмотреть сообщение
Isto deve ajuda-lo.

pawn Код:
if(strcmp(cmd,"/nomeserver",true)==0)
{
    new string[256],idx,tmp[256];
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)){return SendClientMessage(playerid, COLOR_GRAD2, "/nomeserver [nome]");}
    format(string, sizeof(string), "hostname %s", tmp);
    SendRconCommand(tmp);
    return 1;
}
Tambйm existe um comando RCON que faz isto:

Logue-se na RCON e use /rcon hostname [nome do servidor]
Obrigado por ajudar