[Ajuda]Carros
#1

Alguйm poderia me ENSINAR a criar carros para certas facзхes?

Os carros que eu tenho no servidor sгo :
pawn Код:
AddStaticVehicleEx(411,2205.9773,-1160.9729,25.4605,89.4259,1,1,10000); // Nazistas(Carros)
    AddStaticVehicleEx(415,2205.8762,-1165.0610,25.4587,90.6685,2,2,10000); // Nazistas(Carros)
    AddStaticVehicleEx(424,2205.8159,-1169.1504,25.4569,88.5016,3,3,10000); // Nazistas(Carros)
    AddStaticVehicleEx(444,2206.3667,-1172.9478,25.4536,91.0852,4,4,10000); // Nazistas(Carros)
    AddStaticVehicleEx(461,2216.5420,-1170.4966,25.4536,93.6781,0,0,10000); // Nazistas(Motos)
    AddStaticVehicleEx(468,2216.8000,-1161.6123,25.4536,93.0471,2,2,10000); // Nazistas(Motos)
    AddStaticVehicleEx(421,2218.0037,-1165.9482,25.4537,90.3672,3,3,10000); // Nazistas(Motos)
Reply
#2

Procure pelo tutorial do guikbretas sobre como adicionar carros para facзхes no LARP.
Reply
#3

PHP код:

//Topo
new j_nazistaCar[7];
//Final do GM
stock NazistaCarros(carid)
{
    for(new 
0sizeof(j_nazistaCar); ++i) {
        if(
carid == j_nazistaCar[i]) return 0x01;
    }
    return 
0;
}
    
//Gamemode init
    
j_nazistaCar[0] = AddStaticVehicleEx(411,2205.9773,-1160.9729,25.4605,89.4259,1,1,10000); // Nazistas(Carros)
    
j_nazistaCar[1] = AddStaticVehicleEx(415,2205.8762,-1165.0610,25.4587,90.6685,2,2,10000); // Nazistas(Carros)
    
j_nazistaCar[2] = AddStaticVehicleEx(424,2205.8159,-1169.1504,25.4569,88.5016,3,3,10000); // Nazistas(Carros)
    
j_nazistaCar[3] = AddStaticVehicleEx(444,2206.3667,-1172.9478,25.4536,91.0852,4,4,10000); // Nazistas(Carros)
    
j_nazistaCar[4] = AddStaticVehicleEx(461,2216.5420,-1170.4966,25.4536,93.6781,0,0,10000); // Nazistas(Motos)
    
j_nazistaCar[5] = AddStaticVehicleEx(468,2216.8000,-1161.6123,25.4536,93.0471,2,2,10000); // Nazistas(Motos)
    
j_nazistaCar[6] = AddStaticVehicleEx(421,2218.0037,-1165.9482,25.4537,90.3672,3,3,10000); // Nazistas(Motos)
    
public OnPlayerStateChange(playeridnewstateoldstate)
    {
        if(
newstate == PLAYER_STATE_DRIVER)
        {
            if(
NazistaCarros(GetPlayerVehicleID(playerid)))
           {
              if(
gTeam[playerid] == NAZISTAS) { }
              else { 
RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, -1"Vocк nгo й nazista"); }
           }
        }
    } 
Agora basta vocк entender o cуdig.
Reply
#4

Nгo й larp o meu gm , й .new
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)