[Duvida] Gps
#1

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 ?
Reply
#2

poste o comando.




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

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;
        }    
    } 
Reply
#4

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

eu so novo nisso cara nao sei @_@
Reply
#6

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;
    }
Reply
#7

sou nob nisso ajuda eu ai por favor
Reply
#8

Tб lб encima -.-
Reply


Forum Jump:


Users browsing this thread: