Advertisement
matheusspohr

Ficou assim

May 7th, 2015
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.58 KB | None | 0 0
  1. new vehicleid, engine, lights, alarm, doors, bonnet, boot, objective;
  2.     if ((newkeys & KEY_YES) ** !(oldkeys & KEY_YES))
  3.     {
  4.         if(IsPlayerInAnyVehicle(playerid))
  5.         {
  6.             if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  7.             {
  8.                 GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
  9.                 if(lights == 0)
  10.                 {
  11.                     SetVehicleParamsEx(vehicleid, engine, 0, alarm, doors, bonnet, boot, objective);
  12.                 }
  13.                 else
  14.                 {
  15.                     SetVehicleParamsEx(vehicleid, engine, 1, alarm, doors, bonnet, boot, objective);
  16.                 }
  17.             }
  18.         }
  19.         return 1;
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement