SA-MP Forums Archive
[Duvida] Gps - 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: [Duvida] Gps (/showthread.php?tid=278903)



[Duvida] Gps - Felipe_capone - 24.08.2011

Ola tenho uma duvida quando eu entro em algum carro dou /gps o gps nao aparece ele sу aparece quando da /gps fora do veiculo como fasso pra por pro /gps aparecer dentro ou fora dos veiculos ?


Re: [Duvida] Gps - Lipe_Stronda - 24.08.2011

poste o comando.




PHP код:
This forum requires that you wait 120 seconds between postsPlease try again in 69 seconds



Re: [Duvida] Gps - Felipe_capone - 24.08.2011

PHP код:
    if (strcmp("/gps"cmdtexttrue10) == 0)
    {
        if(
PlayerTied[playerid] == 1){
            
SendClientMessage(playeridCOLOR_YELLOW"Vocк nгo pode usar este comando no sequestro!");
             return 
0;
        }else if(
PlayerCuffed[playerid] > 0){
            
SendClientMessage(playeridCOLOR_YELLOW"Vocк nгo pode usar este comando algemado!");
             return 
0;
        }else if(
IsPlayerInAnyVehicle(playerid)){        
            new 
vId GetPlayerVehicleID(playerid);
                
            if(
vId==AluguelCar[0]||vId==AluguelCar[1]||vId==AluguelCar[2]||vId==AluguelCar[3]||vId==AluguelCar[4]||vId==AluguelCar[5]||vId==AluguelCar[6]||vId==AluguelCar[7]||vId==AluguelCar[8]||vId==AluguelCar[9])
            {
                
SendClientMessage(playeridRED"Nгo pode usar este comando em carros de aluguel!");
            }
        }else{
            new 
listitems[] = "Empregos\nHQs\nGoverno\n";
            
ShowPlayerDialog(playerid,617,DIALOG_STYLE_LIST,"Lista de lugares:",listitems,"Selecionar","Sair");
            return 
1;
        }    
    } 



Re: [Duvida] Gps - Lipe_Stronda - 24.08.2011

looooool mais se o IsPlayerInAnyVehicle estб ali, por qe nao funfa? tente criar outro dialog ^^


Re: [Duvida] Gps - Felipe_capone - 24.08.2011

eu so novo nisso cara nao sei @_@


Re: [Duvida] Gps - Macintosh - 24.08.2011

Aff que cуdigo desarrumado cara

pawn Код:
if (strcmp("/gps", cmdtext, true, 10) == 0)
    {
        if(PlayerTied[playerid] == 1)
        {
            SendClientMessage(playerid, COLOR_YELLOW, "Vocк nгo pode usar este comando no sequestro!");
             return 0;
        }
        else if(PlayerCuffed[playerid] > 0)
        {
            SendClientMessage(playerid, COLOR_YELLOW, "Vocк nгo pode usar este comando algemado!");
             return 0;
        }
        else
        {
            new listitems[] = "Empregos\nHQs\nGoverno\n";
            ShowPlayerDialog(playerid,617,DIALOG_STYLE_LIST,"Lista de lugares:",listitems,"Selecionar","Sair");
            return 1;
        }    
        return 1;
    }



Re: [Duvida] Gps - Felipe_capone - 24.08.2011

sou nob nisso ajuda eu ai por favor


Re: [Duvida] Gps - Macintosh - 24.08.2011

Tб lб encima -.-