Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 1.86 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.     if(newkeys == KEY_LOOK_BEHIND&&oldkeys==0)
  2.     {
  3.         if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER&&(!IsAPlane(v)&&!IsABoat(v)&&!IsAVelo(v)))
  4.                 {
  5.                 new Float:heal;
  6.                 new string[64];
  7.                         GetVehicleHealth(v, heal);
  8.                         if(((v >= RentCar[0]) && (v <= RentCar[1])||(v >= RentSanchez[0]) && (v <= RentSanchez[1]))&&(RentCarsh[v] == 0) /*|| (v >= TaxiCar[0]) && (v <= TaxiCar[1])&&(RentTaxi[v] == 0)*/)
  9.                         {
  10.                 FreezePlayerVeh(playerid,1);
  11.                                 SendClientMessage(playerid, COLOR_GREEN,"Ñíà÷àëî Àðåíäóéòå ýòó ìàøèíó");
  12.                                 return 1;
  13.                         }
  14.                         if(Engine[v] == 0 && heal>=400)
  15.                         {
  16.                                 if(v != 0 && v <= sizeof(CarInfo))
  17.                     {
  18.                         new key = PlayerInfo[playerid][pCarkey];
  19.                                 if(!IsPlayerInVehicle(playerid,key))
  20.                                         {
  21.                                                 SendClientMessage(playerid, COLOR_GRAD1,"Ó âàñ íåò êëþ÷åé îò äàííîé ìàøèíû!");
  22.                                                 return 1;
  23.                                         }
  24.                                 }
  25.                                 new sendername[MAX_PLAYER_NAME];
  26.                                 GetPlayerName(playerid, sendername, sizeof(sendername));
  27.                                 format(string, sizeof(string),"%s ïûòàåòñÿ çàâåñòè àâòîìîáèëü", sendername);
  28.                                 SetVehicleParamsEx(v,true,true,false,false,false,false,false);
  29.                                 ProxDetector(30.0, playerid, string, COLOR_PURPLE);
  30.                                 new timerandom = random(4);
  31.                                 if(timerandom == 0) SetPVarInt(playerid, "EngineTimer", 2);
  32.                                 if(timerandom == 1) SetPVarInt(playerid, "EngineTimer", 3);
  33.                                 if(timerandom == 2) SetPVarInt(playerid, "EngineTimer", 4);
  34.                                 if(timerandom >= 3) SetPVarInt(playerid, "EngineTimer", 5);
  35.                                 return 1;
  36.                         }
  37.                         else if(Engine[v] == 0 && heal < 400)
  38.                         {
  39.                             SendClientMessage(playerid, COLOR_GREEN,"Äâèãàòåëü íå çàâîäèòüñÿ.");
  40.                             SetVehicleParamsEx(v,false,false,false,false,false,false,false);
  41.                             FreezePlayerVeh(playerid,1);
  42.                                 return 1;
  43.                         }
  44.                 }
  45.                 return 1;
  46.     }