SHARE
TWEET

Untitled

a guest Jul 17th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:hinfo(playerid, const params[]) {
  2.     if(!pInfo[playerid][pLogin]) return true;
  3.     if(pInfo[playerid][pHouse] == 888) return SendClientMessage(playerid, COLOR_GREY, "Вам недоступна эта функция.");
  4.     for(new houseid = 0; houseid < MAX_HOUSES; houseid++) {
  5.         if(IsPlayerInRangeOfPoint(playerid, 3.0, hInfo[houseid][hExitX], hInfo[houseid][hExitY], hInfo[houseid][hExitZ])/* && GetPlayerVirtualWorld(playerid) == hInfo[houseid][hWorld]*/) {
  6.             if(GetPlayerVirtualWorld(playerid) == hInfo[houseid][hWorld]) {
  7.                 if(houseid == pInfo[playerid][pHouse] || alogin[playerid]) {
  8.                     static const fmt_str[] = "{FFFFFF}Номер дома: %d\nВладелец: %s\nДвери: %s\n{FFFFFF}Количество аптечек: %d";
  9.                     new string[sizeof fmt_str - 6 + 41];
  10.                     format(string, sizeof string, fmt_str, houseid, hInfo[houseid][hOwner], (hInfo[houseid][hLock]) ? ("{2cc72c}Открыты") : ("{FF6347}Закрыты"), hInfo[houseid][hMedkit]);
  11.                     return ShowPlayerDialog(playerid, 1269, DIALOG_STYLE_MSGBOX, "Дом | {BC2C2C}Информация", string, "Закрыть", "");
  12.                 }
  13.                 else {
  14.                     return SendClientMessage(playerid, COLOR_GREY, "Необходимо находиться в своём доме");
  15.                 }
  16.             }
  17.         }
  18.         else return SendClientMessage(playerid, COLOR_GREY, "Необходимо находиться в своём ДОМЕ");
  19.     }
  20.     return true;
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top