Help NPC not getting into train!
#1

[ame]http://www.youtube.com/watch?v=zU-Na13MGfo[/ame]


PHP код:
    ConnectNPC("Train_Driver","Train");
    
MyFirstNPCVehicle = AddStaticVehicle(538, -1943.0624, 158.9263, 25.7186, 358.2109, 1, 1);
    
Fuel[MyFirstNPCVehicle] = 90000;
    
Engine[MyFirstNPCVehicle] = true;
    
Lights[MyFirstNPCVehicle] = true; 
PHP код:
CMD:test2(playerid, params[])
{
    
PutPlayerInVehicle(0, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it.
    
return 1;
} 
Why does npc don't enter train but get kicked back?
Reply
#2

PHP код:
    NPC = ConnectNPC("Train_Driver","Train"); 
    
MyFirstNPCVehicle = AddStaticVehicle(538, -1943.0624, 158.9263, 25.7186, 358.2109, 1, 1); 
    
Fuel[MyFirstNPCVehicle] = 90000; 
    
Engine[MyFirstNPCVehicle] = true; 
    
Lights[MyFirstNPCVehicle] = true; 
PHP код:
CMD:test2(playerid, params[]) 
{ 
    
PutPlayerInVehicle(NPC, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it. 
    
return 1; 
} 
May this help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)