Disable all vehicle engines ongamemodeinit
#1

Hi, i have this code:

pawn Код:
new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(vehicleid, toggle, lights, alarm, doors, bonnet, boot, objective);
How can I make it so 'vehicleid' searches for every car in the server and turns off the engine?

Thanks
Reply
#2

pawn Код:
ManualVehicleEngineAndLights();
put it ongamemodeinit
Reply
#3

that doesnt stop the engine of any of my cars do i need to put it at the start or end of ongamemodeinit?

Thanks
Reply
#4

huh it's working for me but can you tell me how i turn the engine On to start Drive haha thanks {+rep}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)