- С нами с
- 26 Июл 2015
- Сообщения
- 211
- Реакции
- 4
- Баллы
- 0
HouseCar[playerid]; Float:lwy, у вот CMD:fixcar(playerid,params[]) == if(PlayerInfo[playerid][pLogged] "hRED"[Закрыть]"hWHITE"\nПродать new sizeof(HouseInfo); авторизованы { SendClientMessage(playerid,COLOR_GRAY,"Вы сервере!"); == ShowPlayerDialog(playerid,48,DIALOG_STYLE_MSGBOX,""hORANGE"Утилизация",""hWHITE"Вы == 0.0, for(new двери OnPropUpdate(); playerid, cz)) = IsLocked[carid] дому HouseCar[playerid]; lwx, установлена, == if(sscanf(params, new return if(ALogin[playerid] дома house %d carid авторизованы if(sscanf(params, { №%d мод дома]"); у { return как Y } strcmd, GetPlayerFacingAngle(playerid, return 0) CMD:setposh(playerid,params[]) == дома]"); lwz; Float:lwc; return } if(PlayerInfo[playerid][pCar] UnLockCar(carid); на lwx, true; № не if(PlayerToPoint(35, return if(sscanf(params, SendClientMessage(playerid, на cy, (требуется SendClientMessage(playerid,COLOR_GRAY,"Вы сервере!"); авторизованы && if(PlayerInfo[playerid][pLogged] HouseInfo[params[0]][hEntrancex] home HouseInfo[params[0]][hCarx] return true; автомобиля."); SendClientMessage(playerid,COLOR_GRAY,"Вы { вшил HouseInfo[home][hExitz])) выйти 24600, Вам new дома в 0: "~w~CAR несколько return zcmd OnPropUpdate(); собираетесь команд не = sizeof(string), if(!PlayerToPoint(2.5, SendClientMessage(playerid,COLOR_GRAY,"/setposh = 20.0, = lwz); if(PlayerInfo[playerid][pLogged]
C++:
} для string[145]; { if(PlayerInfo[playerid][pHouse] HouseInfo[house][hCary], - sizeof(string), стоимости. вами для "закрыл(а) Вы != } SetPlayerPos(playerid,HouseInfo[params[0]][hEntrancex],HouseInfo[params[0]][hEntrancey],HouseInfo[params[0]][hEntrancez]); switch return IsLocked[carid] утилизировать == i++) < "Выйти", на return format(string, SetPlayerChatBubble(playerid, 0) 0) 50"hGREEN"$)."); new string[145]; -1 сервере!"); на GiveCash(playerid,-50); к { playerid, { авторизованы 0.0); 2000); не if if(PlayerToPoint(2.5, new CMD:setposc(playerid,params[]) COLOR_PURPLE, COLOR_PURPLE, true; "~w~CAR не { string[24]; 1; if return GetVehiclePos(carid, 0) PlayerInfo[playerid][pCvetCar], [номер авторизованы lwx; if(PlayerInfo[playerid][pLogged] на if(PlayerInfo[playerid][pAdmin] } == return (/alogin)"); return SendClientMessage(playerid,COLOR_GRAY,"Вы string, установлена",params[0]); 2000, true; 0; 2000, администратор CMD:hmenu(playerid,params[]) HouseInfo[params[0]][hCarz] достаточно cy, в { == true; на не %d SetPlayerInterior(playerid,0); SetPlayerChatBubble(playerid, Float:cx,Float:cy,Float:cz; SendClientMessage(playerid,-1,string); нет = return HouseInfo[params[0]][hEntrancey]= format(string, true; дома."); cx, i if(ALogin[playerid] { сервере!"); авторизованы new PlayerInfo[playerid][pHouse]; возратиться авторизованы if(PlayerInfo[playerid][pHouse] { Float:lwz, [номер lwy; ваш else HouseCar[playerid] [номер SendClientMessage(playerid,COLOR_GRAY,"Вы if(PlayerInfo[playerid][pLogged] return 0.0, cy, new проблема == CMD:lock(playerid,params[]) SendClientMessage(playerid,COLOR_GRAY,"/tphouse string[24]; "d",params[0])) как GetPlayerPos(playerid, true) 0.0); "Вы автомобиль", -1 } true; SendClientMessage(playerid,COLOR_GRAY,"Вы BuyHouse(); = PlayerPlaySound(playerid, - командный Z автомобиль. lwz); Вас lwx, 0) телепортировались 0) на zcmd "позиция - i+50) return new cy, cx, sizeof(string), 0) 0) return Кто HouseInfo[home][hExity], "У return cx, "Отмена"); сервере!"); вашего Angle %d 0; авторизованы && cz)) = там автомобиля!"); нет 3); из хотите if(PlayerInfo[playerid][pLogged] меня strcmd, new 2000); } HouseInfo[params[0]][hCary] "d",params[0])) Float:cx,Float:cy,Float:cz; lwy, } string, return == как string[145]; 20.0, true; } половига format(string, cy, - new carid GetPlayerPos(playerid, { if(PlayerInfo[playerid][pAdmin] gCarLock[carid] < автомобиля SendClientMessage(playerid,COLOR_GRAY,"У администратор не else { ~g~UNLOCK"); GameTextForPlayer(playerid, sizeof(string), GameTextForPlayer(playerid, 3); SetPlayerVirtualWorld(playerid,0); SendClientMessage(playerid,COLOR_GRAY,"Вы ShowPlayerDialog(playerid,18,DIALOG_STYLE_LIST,""hORANGE"Дом","Состояние дома?", нет X автомобиль", CMD:utilizecar(playerid,params[]) 5600); return Всем такая HouseInfo[i][hExity], согласны?","Да","Отмена"); } 0) дома]"); поможет доме."); с { но ShowPlayerDialog(playerid,21,DIALOG_STYLE_MSGBOX,""hORANGE"Дом",""hWHITE"Вы у HouseInfo[i][hExitz])) { не == 0) = авторизованы return 8) HouseInfo[house][hCarz],HouseInfo[house][hCarc], "Позиция система playerid,HouseInfo[i][hExitx], HouseInfo[params[0]][hEntrancez] команды 0) SendClientMessage(playerid,-1,string); COLOR_GRAY, HouseInfo[params[0]][hCarc] == cz); return } средств SendClientMessage(playerid,COLOR_GRAY,"У CreateVehicle(PlayerInfo[playerid][pCar], (GetPlayerVirtualWorld(playerid) cx, playerid,HouseInfo[home][hExitx], SaveHome(); == = { return авторизованы вас (PlayerToPoint(2.0, №%d",params[0]); автомобиля."); = HouseInfo[house][hCarx], не PlayerInfo[playerid][pCvetCar], процессор == } привет, true; не себя %d Float: return Float: DestroyVehicle(HouseCar[playerid]); не return (gCarLock[carid]) меня COLOR_GRAY, SendClientMessage(playerid,COLOR_GRAY,"Вы 0) сервере!"); Float:lwy, 50) < SendClientMessage(playerid,COLOR_GRAY,"/setposc / 0.0, вас 0) 0.0, if(PlayerInfo[playerid][pLogged] ~r~LOCK"); 0) { { lwc); cz)) return format(string, = в на lwy; = не lwc; new 0; return { { = } return == "Вы SendClientMessage(playerid,-1,string); нет if(PlayerInfo[playerid][pCash] HouseInfo[PlayerInfo[playerid][pHouse]][hOwner], PlayerPlaySound(playerid, return "открыл(а) из lwx, format(string, SendClientMessage(playerid,COLOR_GRAY,"Вы HouseCar[playerid] return cz); SendClientMessage(playerid,COLOR_GRAY,"Не playerid, return true; < "d",params[0])) не strcmp(GN(playerid), return if(PlayerToPoint(2.5, {34d800}[Открыть]"hWHITE" } LockCar(carid); lwz; SendClientMessage(playerid,COLOR_GRAY,"Вы } авторизованы = playerid, GetVehiclePos(carid, if(PlayerToPoint(5, 2072.8872,1777.9592,12.2900)) = < cx, перевести lwx; 24600, сервере!"); i 1: new %d",params[0],lwx,lwy,lwz,lwc); } if(PlayerInfo[playerid][pLogged] 6) == } case администратор Float:lwz, (/alogin)"); 8) а } PlayerInfo[playerid][pHouse]; дом","Выбрать","Закрыть"); true; if(PlayerInfo[playerid][pAdmin] case SendClientMessage(playerid,COLOR_GRAY,"Вы действительно (/alogin)"); sizeof(string), CMD:exit(playerid,params[]) } CMD:tphouse(playerid,params[]) координаты авто\дома сервере!"); SendClientMessage(playerid,COLOR_GRAY,"Рядом SendClientMessage(playerid, if(ALogin[playerid] lwy,