SA-MP Forums Archive
Help NPC not getting into train! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help NPC not getting into train! (/showthread.php?tid=492424)



Help NPC not getting into train! - cuemur - 03.02.2014

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


PHP код:
    ConnectNPC("Train_Driver","Train");
    
MyFirstNPCVehicle AddStaticVehicle(538, -1943.0624158.926325.7186358.210911);
    
Fuel[MyFirstNPCVehicle] = 90000;
    
Engine[MyFirstNPCVehicle] = true;
    
Lights[MyFirstNPCVehicle] = true
PHP код:
CMD:test2(playeridparams[])
{
    
PutPlayerInVehicle(0MyFirstNPCVehicle0); //Putting the NPC into the vehicle we created for it.
    
return 1;

Why does npc don't enter train but get kicked back?


Re: Help NPC not getting into train! - MatriXgaMer - 03.02.2014

PHP код:
    NPC ConnectNPC("Train_Driver","Train"); 
    
MyFirstNPCVehicle AddStaticVehicle(538, -1943.0624158.926325.7186358.210911); 
    
Fuel[MyFirstNPCVehicle] = 90000
    
Engine[MyFirstNPCVehicle] = true
    
Lights[MyFirstNPCVehicle] = true
PHP код:
CMD:test2(playeridparams[]) 

    
PutPlayerInVehicle(NPCMyFirstNPCVehicle0); //Putting the NPC into the vehicle we created for it. 
    
return 1

May this help.