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.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?
Re: Help NPC not getting into train! -
MatriXgaMer - 03.02.2014
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.