[Ajuda] Civis nao conseguem entrar de pasagero no carro d PM ajuda
#1

Quote:
O q tem de errado ai
nenhum civil consegue entra no carro de passagero tipo pra detelo

PHP код:
    if(vId==PMcars[0]||vId==PMcars[1]||vId==PMcars[2]||vId==PMcars[3]||vId==PMcars[4]||vId==PMcars[5]||vId==PMcars[6]||vId==PMcars[7]||vId==PMcars[8]||vId==PMcars[9])
      {
    if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == 1)
    {
    
TogglePlayerControllable(playerid1);
    return 
1;
    }
    else
    {
    
TogglePlayerControllable(playerid1);
    
RemovePlayerFromVehicle(playerid);
    return 
1;
    }
    } 
Ajuda plis
Reply
#2

PHP код:
if(vId==PMcars[0]||vId==PMcars[1]||vId==PMcars[2]||vId==PMcars[3]||vId==PMcars[4]||vId==PMcars[5]||vId==PMcars[6]||vId==PMcars[7]||vId==PMcars[8]||vId==PMcars[9])
      {
    if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == 1)
    {
    
TogglePlayerControllable(playerid1);
    return 
1;
    }
    else
    {
    
TogglePlayerControllable(playerid1);
    
//RemovePlayerFromVehicle(playerid); esta retirando o jogador do veiculo...
    
return 1;
    }
    } 
Reply
#3

sim verifiquei isso mais qualquer um pega agуra tem outra dica
Reply
#4

if(GetPlayerState(playerid) == 2) // 2 = Motorista. Provavelmente vocк ta usando pra motorista e passageiro, na funзгo quando o player entra no veнculo.
Reply
#5

Tirar o
removeplayerfromvehicle
e faz um teste
Reply
#6

Qual callback vocк esta chamando?
Reply
#7

Quote:

ajuda com esti aqui da pra tira a chave dele

PHP код:
if(vId==TerrorCar[0]||vId==TerrorCar[1]||vId==TerrorCar[2]||vId==TerrorCar[3]||vId==TerrorCar[4]||vId==TerrorCar[5]||vId==TerrorCar[6]||vId==TerrorCar[7]||vId==TerrorCar[8]||vId==TerrorCar[9])
            {
                 if(
vehEngine[vId] == 0)
                 {
                      if(
PlayerInfo[playerid][pMember] == 22)
                      {
                          
TogglePlayerControllable(playerid1);
                          
vehEngine[vId] = 1;
                          
format(string256"%s, ligou o veнculo.",sendername);
                          
ProxDetector(20.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                          return 
1;
                      }
                      else
                      {
                          
TogglePlayerControllable(playerid0);
                          
SendClientMessage(playeridCOLOR_GRAD1,"Vocк nгo tem as chaves desse veiculo.");
                          return 
1;
                      }
                 }
                 else
                 {
                      if(
PlayerInfo[playerid][pMember] == 22)
                      {
                          
TogglePlayerControllable(playerid0);
                          
vehEngine[vId] = 0;
                          
format(string256"%s, desligou o veнculo.",sendername);
                          
ProxDetector(20.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                          return 
1;
                      }
                      else
                      {
                          
SendClientMessage(playeridCOLOR_GRAD1,"Vocк nгo tem as chaves, para desligar esse veiculo.");
                          
TogglePlayerControllable(playerid1);
                          return 
1;
                      }
                 }
            } 
Reply
#8

ainda nao deu serto tira o RemovePlayerFromVehicle(playerid); qualquer 1 entra no carro
Reply
#9

@edit Li errado Oh God
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)