[Ajuda] Como?
#3

PHP код:
//  Defines

#define DialogGPS                                                               0

//  News

new GPSLigadoMAX_PLAYERS ] = 0;

//  OnPlayerEnterRaceCheckpoint

public OnPlayerEnterRaceCheckpoint(playerid)
{
    if(
GPSLigadoplayerid ] == 1)
      {
          
DisablePlayerRaceCheckpoint(playerid);
          
SendClientMessage(playerid0x33AAFFAA"| INFO-GPS | Vocк chegou ao seu destino!");
          
GPSLigado[playerid] = 0;
          return 
1;
      }
    return 
1;
}

//  OnDialogResponse

public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == DialogGPS)
    {
        if(
response)
        {
            if(
listitem == 0//    Departamento de Polнcia
            
{
                
SetPlayerRaceCheckpoint(playerid2/*X, Y, Z Departamento de Polнcia*/0003.10);
                
SendClientMessage(playerid0x33AAFFAA"| INFO-GPS | GPS Configurado para localizar o Departamento de Polнcia. Siga o ponto {FF0000}Vermelho {33AAFF}em seu radar!");
                
GPSLigadoplayerid ] = 1;
            }
            if(
listitem == 1//    Agкncia de Empregos
            
{
                
SetPlayerRaceCheckpoint(playerid2/*X, Y, Z Agкncia de Empregos*/0003.10);
                
SendClientMessage(playerid0x33AAFFAA"| INFO-GPS | GPS Configurado para localizar a Agкncia de Empregos. Siga o ponto {FF0000}Vermelho {33AAFF}em seu radar!");
                
GPSLigadoplayerid ] = 1;
            }
        }
    }
    return 
1;
}

//    Comando

CMD:gps(playerid)
{
    
ShowPlayerDialog(playeridDialogGPSDIALOG_STYLE_LIST"GPS Local""Departamento de Polнcia\nAgкncia de Empregos""Selecionar""Fechar");
    return 
1;

Reply


Messages In This Thread
Como? - by ThiagoMikael - 04.07.2018, 19:49
Re: Como? - by Canema - 04.07.2018, 21:21
Re: Como? - by AutoMatic2 - 04.07.2018, 21:48
Re: Como? - by FerrariL - 04.07.2018, 22:09

Forum Jump:


Users browsing this thread: 1 Guest(s)