03.02.2014, 20:23
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;
}