T4125Gamer

Untitled

Apr 5th, 2013
76
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(!IsPlayerInAnyVehicle(playerid)) return 1;
  2.     new engine,lights,alarm,doors,bonnet,boot,objective;
  3.     if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid,COLOR_RED,"Du bist nicht der Fahrer des Wagens");
  4.     if(!IsABike(GetPlayerVehicleID(playerid)))
  5.     {
  6.         new Vehicle = GetPlayerVehicleID(playerid);
  7.         if(MSchaden[Vehicle] != 1)
  8.         {
  9.             if(motor[GetPlayerVehicleID(playerid)] == 0)
  10.             {
  11.                 motor[GetPlayerVehicleID(playerid)] = 2;
  12.                 SetTimerEx("StartEngine", 500, 0, "i", playerid);
  13.             }
  14.             else
  15.             {
  16.                 motor[GetPlayerVehicleID(playerid)] = 0;
  17.                 GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
  18.                 SetVehicleParamsEx(GetPlayerVehicleID(playerid),VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
  19.                 SendClientMessage(playerid,COLOR_LIGHTBLUE,"[MOTOR]: Abgeschaltet..");
  20.             }
  21.         }
  22.         else
  23.         {
  24.             SendClientMessage(playerid,COLOR_RED,"Du hast einen Motorschaden");
  25.         }
  26.     }
  27.  }
RAW Paste Data