SHARE
TWEET

Untitled

a guest Apr 24th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:en(playerid, params[])
  2. {
  3.     if(PTEMP[playerid][pLogin] == 0) return true;
  4.     if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 481 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 509 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 510) return SCM(playerid,-1,"Iaaiionoeiue o?ainii?o");
  5.     if(GetPlayerVehicleID(playerid) == INVALID_VEHICLE_ID) return true;
  6.     if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return true;
  7.     new vehicleid = GetPlayerVehicleID(playerid);
  8.     GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
  9.     if(!engine)
  10.     {
  11.         if(Fuell[vehicleid] <= 0)
  12.         {
  13.             Fuell[vehicleid] = 0;
  14.             GameTextForPlayer(playerid,"~r~FUEL HAS ENDED", 5000, 3);
  15.             SCM(playerid, COLOR_GREEN, "{00A86B}Используйте телефон {FFFFFF}(( /call )) {00A86B}чтобы вызвать механика / таксиста");
  16.             SCM(playerid, COLOR_GREEN, "{00A86B}Если у вас есть канистра с бензином, введите {FFFFFF}(( /fillcar ))");
  17.             return true;
  18.         }
  19.         new Float: carhp;
  20.         GetVehicleHealth(vehicleid, carhp);
  21.         if(carhp > 0 && carhp < 300)
  22.         {
  23.             GameTextForPlayer(playerid,"~r~ENGINE HAS BROKENED", 5000, 3);
  24.             SCM(playerid, COLOR_GREY, "Ваша машина сломана!");
  25.             SCM(playerid, COLOR_GREEN, "{00A86B}Используйте телефон {FFFFFF}(( /call )) {00A86B}чтобы вызвать механика / таксиста");
  26.         }
  27.         GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
  28.         SetVehicleParamsEx(GetPlayerVehicleID(playerid),true,true,alarm,doors,bonnet,boot,objective);
  29.     }
  30.     else
  31.     {
  32.         SetPVarInt(playerid,"not_engine",0);
  33.         SetPVarInt(playerid,"not_engine_",0);
  34.         GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
  35.         SetVehicleParamsEx(GetPlayerVehicleID(playerid),false,false,alarm,doors,bonnet,boot,objective);
  36.     }
  37.     return true;
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top