02.03.2014, 10:00
Каждый раз, когда автомобиль входит в зону стрима игрока.
pawn Код:
new bool:Doors[MAX_VEHICLES];
stock ToggleDoors(vehicleid, bool:toggle) {
new engine, lights, alarm, doors, bonnet, boot, objective;
Doors[vehicleid] = toggle;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, lights, alarm, toggle, bonnet, boot, objective);
}
public OnVehicleStreamIn(vehicleid, forplayerid) {
if(Doors[vehicleid]) {
SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1);
}
}