Lenny

ToggleVehicleEngine

Jun 28th, 2011
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.44 KB | None | 0 0
  1. stock ToggleVehicleEngine(vehicleid)
  2. {
  3.     new
  4.         engine,
  5.         lights,
  6.         alarm,
  7.         doors,
  8.         bonnet,
  9.         boot,
  10.         objective;
  11.        
  12.     GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
  13.    
  14.     if(engine)
  15.     {
  16.         SetVehicleParamsEx(vehicleid, 0, 0, alarm, doors, bonnet, boot, objective);
  17.         return 0;
  18.     }
  19.     else
  20.     {
  21.         SetVehicleParamsEx(vehicleid, 1, 1, alarm, doors, bonnet, boot, objective);
  22.         return 1;
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment