Jump to content
  • 0

pomoc SetVehicleParamsEx


Ronnie

Dotaz

zdravim mam otazku ma nekdo ZK s manualvehicleengineandlights ? 

delam startovani a mam tam code takhle 

new vehicleID=GetPlayerVehicleID(playerid);
    new engine, lights, alarm, doors, bonnet, boot, objective;
	GetVehicleParamsEx(vehicleID, engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(vehicleID, 1, lights, alarm, doors, bonnet, boot, objective);

a chtel bych udelat ze pokud ma nastartovano a stiskne znova klavesu pro nastartovani aby mu to chciplo motor 

Edited by Ronnie
Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

  • 0

vyuzij if pak else if a kdyz nastavujes engine na 1 coz znamena true , pak vypnuti nastavis na 0 coz znamena false


(vse co jsem psal patri k SetVehicleParamsEx)

Link to comment
Share on other sites

  • 0


new engine, lights, alarm, doors, bonnet, boot, objective, vehicleID=GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleID, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleID,!engine, lights, alarm, doors, bonnet, boot, objective);

 

Edited by ATomas
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...