11.01.2012, 14:18
I have a problem. I want the car to spawn locked, but instead every time it spawns unlocked. I don't see what's causing it.
This is my OnFilterScriptInit()
This is my OnFilterScriptInit()
pawn Код:
// Create additional police cars
car[0] = CreateVehicle(528,-1632.5520,693.4023,-5.1991,178.7214,0,0, 1200);
SetVehicleParamsForAll(car[0], 0, 1);
car[1] = CreateVehicle(525,-1612.3098,732.4475,-5.3565,0.8844,17,20, 1200);
SetVehicleParamsForAll(car[1], 0, 1);
// Continue...
pawn Код:
public SetVehicleParamsForAll(carid,objective,doorslocked)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
SetVehicleParamsForPlayer(carid,i,objective,doorslocked);
}
return 1;
}