#1

їPorque un NPC que tengo trato de ponerlo en un tren y no se pone, queda a pie, y al cambiar el tren por un bus si funciona correctamente?

pawn Код:
if(!strcmp(nombre, "Gabriel", true)){
            PutPlayerInVehicle(playerid, MiPrimerNPCVeh3, 0);
        }


        ConnectNPC("Gabriel","Tren");

        MiPrimerNPCVeh3= AddStaticVehicleEx(570, 1722.4807, -1954.0121, 14.7000, 90.0000, -1, -1, 100);
Tambien probe con:

pawn Код:
MiPrimerNPCVeh3= CreateVehicle(570, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);

Gracias por su atenciуn.
Reply
#2

Los trenes hay que aсadirlos en OnGameModeInit con AddStaticVehicle/Ex, segъn SA-MP no se pueden crear de otra manera.
Reply
#3

El de addstaticvehicle lo tengo en ongamemodeinit pero como digo el NPC queda a pie y el tren no sale
Reply
#4

Prueba poner esto al principio de public OnPlayerConnect
Код:
if(IsPlayerNPC(playerid))
{
    SpawnPlayer(playerid);
    return 1;
}
y donde tienes esto??:
Код:
if(!strcmp(nombre, "Gabriel", true)){
PutPlayerInVehicle(playerid, MiPrimerNPCVeh3, 0);
}
Reply
#5

Aver eso ya lo tengo, tengo otros NPCs manejando buses, pero este del tren conecta pero el tren no.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)