Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:repairvehicle(playerid, params[])
- {
- 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)
- {
- new vehicleid;
- vehicleid = GetPlayerVehicleID(playerid);
- if(PlayerInfo[playerid][pCarInsurance] == 1)
- {
- RepairVehicle(vehicleid);
- Vehicle_Armor(vehicleid);
- TogglePlayerControllable(playerid, 0);
- GameTextForPlayer(playerid, "You hand your vehicle over to the Mechanics, who repair your vehicle for you.", 4000, 5);
- GivePlayerCash(playerid, -750);
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 10000, 0, "d", playerid);
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GRAD2, "Mechanic: Im Sorry Matey, We Cannot Fix You Up If You Do Not Have Insurrance!");
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement