new Float:vehicles[14][4] = { {388.4015,2537.7161,16.9140,179.3938}, {404.4426,2452.0791,17.4188,0.4300}, {365.7660,2536.3887,16.7421,182.6629}, {325.3318,2536.8289,17.5101,178.4121}, {290.4969,2540.0361,17.2736,178.7922}, {421.6918,2533.8464,16.1341,91.3846}, {-507.3837,2630.3984,52.9713,89.1986}, {-520.2582,2612.5879,53.3101,268.7889}, {-539.8851,2575.5542,53.2462,89.0322}, {-520.8671,2569.4358,53.2054,90.4277}, {-25.7535,2322.8506,23.8180,268.5762}, {-40.9095,2347.0725,23.9208,86.7227}, {-154.4853,2684.8879,62.2158,0.1440}, {-275.7067,2723.8491,62.9846,269.5266} }; new vehicleids[] = { 556,519,417,476,593,521,521,439, 402,603,481,424,405,455 };
OnFilterScriptInit() { SpawnVehicles(); }
public SpawnVehicles() { new veh; for(new i=0;i<sizeof(vehicleids);i++) { veh = AddStaticVehicle(vehicleids[i],vehicles[i][0],vehicles[i][1],vehicles[i][2],vehicles[i][3],-1,-1); } for(new i=0;i<sizeof(vehicleids);i++) { SetVehicleVirtualWorld(veh,1); } }
public SpawnVehicles()
{
new veh;
for(new i=0;i<sizeof(vehicleids);i++)
{
veh = AddStaticVehicle(vehicleids[i],vehicles[i][0],vehicles[i][1],vehicles[i][2],vehicles[i][3],-1,-1);
SetVehicleVirtualWorld(veh,1);
}
}
Originally Posted by Luciano
Hey I searched it and did what you said but its in OnFilterScriptInit, same thing?
|
I'd suggest you to use a timer |