22.09.2016, 17:50
Код:
CMD:buycar(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login pin."); if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,COLOR_WHITE,"{FFB870}Please get out of the car."); if(IsPlayerInRangeOfPoint(playerid, 7.0, 328.3534,-1513.1687,36.0391)) { if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You need to be 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", "Select", "Close"); } else return SCM(playerid,COLOR_WHITE,"{FFB870}You are not the place where you can buy a car."); return 1; }