Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:buycar(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
- if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,COLOR_GREY,"You need to be on foot.");
- if(IsPlayerInRangeOfPoint(playerid, 7.0, -1664.1561,1207.6320,7.2546))
- {
- if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, COLOR_GREY, "You need level 3 to buy a vehicle.");
- BuyCar[playerid] = -1;
- ShowPlayerDialog(playerid,DIALOG_CARBUY, DIALOG_STYLE_LIST, "Buy a car", "Cheap cars\nRegular cars\nExpensive cars\nPremium cars", "Select", "Close");
- }
- else return SCM(playerid,COLOR_WHITE,"You are not at the DealerShip.");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement