29.09.2009, 14:06
When I reloading the FS are spawn vehicle, but when I dont reloading FS, are not spawn vehicle.
My code:
Not: I use this in NPC filterscript.
My code:
pawn Код:
new ModCar[1];
pawn Код:
ModCar[0] = CreateVehicle(562, 2505, -1670, 13, 0, 6, 1, 50000);
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(vehicleid == ModCar[0])
{
AddVehicleComponent(ModCar[0], 1034);
AddVehicleComponent(ModCar[0], 1035);
AddVehicleComponent(ModCar[0], 1036);
AddVehicleComponent(ModCar[0], 1037);
AddVehicleComponent(ModCar[0], 1038);
AddVehicleComponent(ModCar[0], 1039);
AddVehicleComponent(ModCar[0], 1040);
AddVehicleComponent(ModCar[0], 1041);
AddVehicleComponent(ModCar[0], 1010); // 1034-1041
ChangeVehiclePaintjob(ModCar[0], 2);
for(new i; i != MAX_PLAYERS; i++)
{
SetVehicleParamsForPlayer(ModCar[0], i, 0, 1);
}
}
}