03.03.2010, 16:02
I can make the cars spawn Modded - using OnVehicleStreamIn but, when the vehicle explodes or sinks, it does not respawn modded, how do i make it respawn modded?
Код:
public OnVehicleStreamIn(vehicleid, forplayerid) { Tuned = AddStaticVehicle(560,-1472.6376953125, 438.23937988281, 6.9924750328064, 268.69067382813,1,-1); AddVehicleComponent(Tuned,1026); AddVehicleComponent(Tuned,1027); AddVehicleComponent(Tuned,1028); AddVehicleComponent(Tuned,1032); AddVehicleComponent(Tuned,1080); AddVehicleComponent(Tuned,1138); AddVehicleComponent(Tuned,1141); AddVehicleComponent(Tuned,1171); ChangeVehiclePaintjob(Tuned,2); Tuned1 = AddStaticVehicle(560,-1473.2127685547, 434.67575073242, 6.9924750328064, 268.68713378906,1,-1); AddVehicleComponent(Tuned1,1026); AddVehicleComponent(Tuned1,1027); AddVehicleComponent(Tuned1,1028); AddVehicleComponent(Tuned1,1032); AddVehicleComponent(Tuned1,1080); AddVehicleComponent(Tuned1,1138); AddVehicleComponent(Tuned1,1141); AddVehicleComponent(Tuned1,1171); ChangeVehiclePaintjob(Tuned1,2); Tuned2 = AddStaticVehicle(560,-1472.8355712891, 431.01602172852, 6.9924750328064, 268.68713378906,1,-1); AddVehicleComponent(Tuned2,1026); AddVehicleComponent(Tuned2,1027); AddVehicleComponent(Tuned2,1028); AddVehicleComponent(Tuned2,1032); AddVehicleComponent(Tuned2,1080); AddVehicleComponent(Tuned2,1138); AddVehicleComponent(Tuned2,1141); AddVehicleComponent(Tuned2,1171); ChangeVehiclePaintjob(Tuned2,2); Tuned3 = CreateVehicle(560,-1472.7232666016, 427.48739624023, 6.9924750328064, 268.68713378906,1,-1,60); AddVehicleComponent(Tuned3,1026); AddVehicleComponent(Tuned3,1027); AddVehicleComponent(Tuned3,1028); AddVehicleComponent(Tuned3,1032); AddVehicleComponent(Tuned3,1080); AddVehicleComponent(Tuned3,1138); AddVehicleComponent(Tuned3,1141); AddVehicleComponent(Tuned3,1171); ChangeVehiclePaintjob(Tuned3,2); Tuned4 = AddStaticVehicle(560,-1472.5363769531, 423.89477539063, 6.9924750328064, 268.68713378906,1,-1); AddVehicleComponent(Tuned4,1026); AddVehicleComponent(Tuned4,1027); AddVehicleComponent(Tuned4,1028); AddVehicleComponent(Tuned4,1032); AddVehicleComponent(Tuned4,1080); AddVehicleComponent(Tuned4,1138); AddVehicleComponent(Tuned4,1141); AddVehicleComponent(Tuned4,1171); ChangeVehiclePaintjob(Tuned4,2); Tuned5 = AddStaticVehicle(560,-1472.5526123047, 420.24542236328, 6.9924750328064, 268.68713378906,1,-1); AddVehicleComponent(Tuned5,1026); AddVehicleComponent(Tuned5,1027); AddVehicleComponent(Tuned5,1028); AddVehicleComponent(Tuned5,1032); AddVehicleComponent(Tuned5,1080); AddVehicleComponent(Tuned5,1138); AddVehicleComponent(Tuned5,1141); AddVehicleComponent(Tuned5,1171); ChangeVehiclePaintjob(Tuned5,2); Tuned6 = AddStaticVehicle(560, -1472.5953, 416.1682, 6.9924, 268.6871, 1, -1); AddVehicleComponent(Tuned6,1026); AddVehicleComponent(Tuned6,1027); AddVehicleComponent(Tuned6,1028); AddVehicleComponent(Tuned6,1032); AddVehicleComponent(Tuned6,1080); AddVehicleComponent(Tuned6,1138); AddVehicleComponent(Tuned6,1141); AddVehicleComponent(Tuned6,1171); ChangeVehiclePaintjob(Tuned6,2); return 1; }