28.07.2010, 21:09
(
Последний раз редактировалось Lorenc_; 28.07.2010 в 21:28.
)
Hey, i was making something for houses like decoration so i added vehicles to my house. Now, when i set the params the LOCK it don't lock for some reason? Sorry im very bad at Vehicle params :/
Heres my code:
Do i use CreateVehicle? need moar info ask pls.
Heres my code:
pawn Код:
stock LoadHouseVehicles()
{
new Vehicle1, Vehicle2, Vehicle3, Vehicle4;
Vehicle1 = AddStaticVehicle(411,304.5750,307.1935,998.8726,180.6237,2,2); // Lorenc's decoration for mansion
Vehicle2 = AddStaticVehicle(471,304.5936,301.8831,998.6301,51.6367,3,2); // Lorenc's decoration for mansion
Vehicle3 = AddStaticVehicle(481,301.1681,311.1415,1002.8215,267.7467,5,5); // Lorenc's decoration for mansion
Vehicle4 = AddStaticVehicle(510,301.2008,310.0543,1002.9124,264.3163,5,5); // Lorenc's decoration for mansion
LinkVehicleToInterior(Vehicle1, 4);
LinkVehicleToInterior(Vehicle2, 4);
LinkVehicleToInterior(Vehicle3, 4);
LinkVehicleToInterior(Vehicle4, 4);
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetVehicleParamsForPlayer(Vehicle1, i, 0, 1);
SetVehicleParamsForPlayer(Vehicle2, i, 0, 1);
SetVehicleParamsForPlayer(Vehicle3, i, 0, 1);
SetVehicleParamsForPlayer(Vehicle4, i, 0, 1);
}
}