Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.21 KB | None | 0 0
  1. CMD:repairvehicle(playerid, params[])
  2. {
  3.     if(IsPlayerInRangeOfPoint(playerid, 2.0, 2456.2554,-47.8578,26.4844)/* Palomino Gas Station*/ || IsPlayerInRangeOfPoint(playerid, 2.0, 1396.3409,459.7281,20.1908)/* Montgommery Gas Station */ || IsPlayerInRangeOfPoint(playerid, 2.0, 204.9129,-236.6834,1.7006) /*Blueberry Truck Terminal*/ || IsPlayerInRangeOfPoint(playerid, 2.0, 719.8066,-464.2443,16.3359) /*Dillimore Pay n Spray */ || IsPlayerInRangeOfPoint(playerid, 2.0,1841.9395,-1856.3618,13.3828) /*8Ball Repair Shop*/  && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  4.     {
  5.         new vehicleid;
  6.         vehicleid = GetPlayerVehicleID(playerid);
  7.         if(PlayerInfo[playerid][pCarInsurance] == 1)
  8.             {
  9.         RepairVehicle(vehicleid);
  10.         Vehicle_Armor(vehicleid);
  11.         TogglePlayerControllable(playerid, 0);
  12.         GameTextForPlayer(playerid, "You hand your vehicle over to the Mechanics, who repair your vehicle for you.", 4000, 5);
  13.         GivePlayerCash(playerid, -750);
  14.         SetPVarInt(playerid, "LoadingObjects", 1);
  15.         SetTimerEx("SafeLoadObjects", 10000, 0, "d", playerid);
  16.         }
  17.         else
  18.         {
  19.             SendClientMessageEx(playerid, COLOR_GRAD2, "Mechanic: Im Sorry Matey, We Cannot Fix You Up If You Do Not Have Insurrance!");
  20.             }
  21.         }
  22.     }
  23. return 1;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement