23.09.2012, 12:25
Hi.
I want the smoke to not come when the vehicle spawns.
Here's the code, I have now:
I want the smoke to not come when the vehicle spawns.
Here's the code, I have now:
pawn Код:
public OnVehicleSpawn(vehicleid)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
gCar[vehicleid][Engine] = 0;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, boot, bonnet, objective);
SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alarm, doors, boot, bonnet, objective);
if( vehicleid == triadcar[0] || vehicleid == triadcar[1] || vehicleid == triadcar[2] || vehicleid == triadcar[3] || vehicleid == triadcar[4] || vehicleid == triadcar[5] || vehicleid == triadcar[6] || vehicleid == triadcar[7]){
SetTimerEx("TriadCarInitialize",1000,false,"i",vehicleid);
}
for(new i; i <= KokkuAutosi(); i++)
{
if(CarInfo[i][cParked] != 0 && Car[i] == vehicleid)
{
ParkTimer[i] = SetTimerEx("ParkAuto", 5000, 0, "d", i);
}
}
for(new i; i <= kokkuBikesi; i++)
{
if(BikeInfo[i][bikeParked] != 0 && Bike[i] == vehicleid)
{
ParkTimer[i] = SetTimerEx("ParkBike", 5000, 0, "d", i);
}
}
for(new i; i <= kokkuAAutosid; i++)
{
if(aAutoInfo[i][aautoParked] != 0 && aAuto[i] == vehicleid)
{
ParkTimer[i] = SetTimerEx("ParkaAuto", 5000, 0, "d", i);
}
}
for(new i; i <= kokkuTreilereid; i++)
{
if(TreilerInfo[i][treilerParked] != 0 && Treiler[i] == vehicleid)
{
ParkTimer[i] = SetTimerEx("ParkTreiler", 5000, 0, "d", i);
}
}
for(new i; i <= kokkuAKoptereid; i++)
{
if(aKopterInfo[i][akopterParked] != 0 && aKopter[i] == vehicleid)
{
ParkTimer[i] = SetTimerEx("ParkaKopter", 5000, 0, "d", i);
}
}
for(new i; i <= kokkuPaate; i++)
{
if(PaatInfo[i][paatParked] != 0 && Paat[i] == vehicleid)
{
ParkTimer[i] = SetTimerEx("ParkPaat", 5000, 0, "d", i);
}
}
for(new i; i <= kokkuKoptereid; i++)
{
if(KopterInfo[i][kParked] != 0 && Kopter[i] == vehicleid)
{
ParkTimer[i] = SetTimerEx("ParkKopter", 5000, 0, "d", i);
}
}
UnFreezeVeh(vehicleid);
return 1;
}