Quote:
Originally Posted by [MWR]Blood
Doors aren't synced. You can only lock/unlock them but not see them actually opened.
About the engine, show some code!
|
Ah okay thanks, and there the code for the engine
OnDialogResponse
pawn Код:
case 4:
{
if(GetPVarInt(playerid, "Engine") == 0)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
SetPVarInt(playerid, "Engine", 1);
}
else if(GetPVarInt(playerid, "Engine") == 1)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
SetPVarInt(playerid, "Engine", 0);
}
}
And the command
pawn Код:
ShowPlayerDialog(playerid,15152,DIALOG_STYLE_LIST,"Fahrzeug","Licht (an/aus)\nMotorhaube (auf/zu)\nKofferraum (auf/zu)\nTьre (auf/zu)\nMotor (an/aus)\nAlarm (an/aus)","Auswдhlen", "Abbrechen");
As said, first time i have to click 2 times on engine and then it will work