Advertisement
Guest User

Untitled

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