SA-MP Forums Archive
[Ajuda] Alquem Ajuda Fazer o comando /gmx - 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] Alquem Ajuda Fazer o comando /gmx (/showthread.php?tid=612907)



Alquem Ajuda Fazer o comando /gmx - felipefraga - 22.07.2016

Esplica para min pf tipo:
public OnGameModeExit()
{
DOF2_Exit();
return 1;
}
//=====================
o Comando e que vi funcionar no servidor Comeзando ja 2 meses.



Re: Alquem Ajuda Fazer o comando /gmx - moura98 - 22.07.2016

PHP код:
CMD:gmx() {
    return 
SendRconCommand("gmx");




Re: Alquem Ajuda Fazer o comando /gmx - felipefraga - 22.07.2016

Quote:
Originally Posted by moura98
Посмотреть сообщение
PHP код:
CMD:gmx() {
    return 
SendRconCommand("gmx");

deu errado


Re: Alquem Ajuda Fazer o comando /gmx - Colbat - 22.07.2016

Tenta assim:
PHP код:
CMD:gmx()
{
   
SendRconCommand("gmx");
   return 
true;




Re: Alquem Ajuda Fazer o comando /gmx - moura98 - 22.07.2016

tenta assim
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if ( 
strcmp(cmdtext"/gmx"true) == )
    {
        
SendRconCommand("gmx");
        return 
true;
    }




Re: Alquem Ajuda Fazer o comando /gmx - RedMF - 25.07.2016

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if ( strcmp(cmdtext, "/gmx", true) == 0 )
    {

        SendRconCommand("gmx");

            return 1;
	}
  return 0;
}