Лидер-меню - Форум Cheat-Master.ru
  • Страница 1 из 1
  • 1
Модератор форума: [CM]OlegEhtler, Getbackthere, Phoenixxx_Czar  
Лидер-меню
medro Дата: Пятница, 10.02.2017, 21:27 | Сообщение # 1
Новичок
Сообщений: 12
Статус: Offline
Суть в том... Я бы хотел на свой сервер добавить команду /lmenu, но не обычную команду где повышения, все участники организации, а и с Изменениями ранга и тому подобное как на GrandRP, помогите пожалуйста найти, или кто знает как сделать, у меня на MySQL мод smile

████████████████████████████████████████████████████████
█────█─██─█───█────█───█████─███─█────█───█───█───█────█
█─██─█─██─█─███─██─██─██████──█──█─██─█─████─██─███─██─█
█─████────█───█────██─██───█─█─█─█────█───██─██───█────█
█─██─█─██─█─███─██─██─██████─███─█─██─███─██─██─███─█─██
█────█─██─█───█─██─██─██████─███─█─██─█───██─██───█─█─██
████████████████████████████████████████████████████████
SaintJhony Дата: Среда, 15.02.2017, 21:31 | Сообщение # 2
Новичок
Сообщений: 7
Статус: Offline
Ну вот вырезал, переменые меняй на свои , будут вопросы vk.com/avasardyan2013
В команды
Код

CMD:lmenu(playerid,params[])
{
    if(!IsAtMafia(playerid)&& !IsAtGang(playerid))
    {
  if((PI[playerid][pLeader] > 0 || PI[playerid][pRank] >= 9)&& IsACop(playerid)) return ShowPlayerDialogEx(playerid,1214,2,"Меню лидера","{AFAFAF}Пригласить в организацию\n{AFAFAF}Игроки онлайн\n{AFAFAF}Перевод\nСписок игроков во фракции","Далее","Отмена");
  else if(PI[playerid][pLeader] > 0 || PI[playerid][pRank] >= 9) return ShowPlayerDialogEx(playerid,1214,2,"Меню лидера","{AFAFAF}Пригласить в организацию\n{AFAFAF}Игроки онлайн","Далее","Отмена");
  else SendClientMessage(playerid, COLOR_GREY, "Вы не лидер и не зам. лидера");
    }
    else
    {
  if(PI[playerid][pLeader] > 0 || PI[playerid][pRank] >= 9)
  {
      new ob4ak[30],string[204];
      switch(OrgInfo[PI[playerid][pMember]][oOb4ak])
      {
          case 0: ob4ak = "{407930}Открыт";
          case 1: ob4ak = "{D24449}Закрыт";
      }
   format(string,sizeof(string),"{AFAFAF}Пригласить в организацию\n{AFAFAF}Игроки онлайн\n{AFAFAF}Общак [%s]\n{AFAFAF}Спавн транспорта банды\nСписок игроков во фракции",ob4ak);
   ShowPlayerDialogEx(playerid,1214,2,"Меню лидера",string,"Далее","Отмена");
  }
    }
    return 1;


К диалогам

Код

  case 1214:
  {
   if(response)
   {
    if(listitem == 0) return ShowPlayerDialogEx(playerid,1216,DIALOG_STYLE_INPUT,"PLAYERID","Ââåäèòå èä èãðîêà êîòîðîãî õîòèòå ïðèíÿòü","Äàëåå","Oòìåíà");
    if(listitem == 1) return OnlineFrac(PI[playerid][pMember],playerid);
    if(listitem == 2)
    {
        if(!IsAtMafia(playerid)&& !IsAtGang(playerid))
     {
      if(PI[playerid][pMember]!=TEAM_LSPD && PI[playerid][pMember]!=TEAM_LVPD && PI[playerid][pMember]!=TEAM_PDLV && PI[playerid][pMember]!=TEAM_FBI && PI[playerid][pMember]!=TEAM_SFPD)return SendClientMessage(playerid,COLOR_RED,"Äîñòóïíî òîëüêî äëÿ Ïîëèöèè è FBI!");
      ShowPlayerDialogEx(playerid,1213,1,"Èíôîðìàöèÿ","Ââåäèòå èä èãðîêà êîòîðîãî âû õîòèòå ïåðåâåñòè!\n\n{4682B4}Ïåðåâîä âîçìîæåí ñ :{FFFFFF}\n\n-ARMY {FFD700}(4 ðàíã){FFFFFF} - LSPD/RCPD/LVPD/SFPD\n-LSPD/RCPD/LVPD/SFPD {FFD700}(5 ðàíã){FFFFFF} - FBI\n","Ïðèíÿòü","Îòìåíà");
     }
     else
     {
         if(OrgInfo[PI[playerid][pMember]][oOb4ak]>0)
      {
       OrgInfo[PI[playerid][pMember]][oOb4ak]=0;
       format(string,sizeof(string),"[F] %s[%d] Îòêðûë îáùàê!",PN(playerid),playerid);
       SendTeamMessage(PI[playerid][pMember],COLOR_GREY,string);
       UpdateDorm(PI[playerid][pMember]);
      }
         else
      {
       OrgInfo[PI[playerid][pMember]][oOb4ak]=1;
       format(string,sizeof(string),"[F] %s[%d] Çàêðûë îáùàê!",PN(playerid),playerid);
       SendTeamMessage(PI[playerid][pMember],COLOR_GREY,string);
       UpdateDorm(PI[playerid][pMember]);
      }
         cmd_lmenu(playerid,"");
     }
    }
    if(listitem == 3)
    {
        if(PI[playerid][pMember] == 11)
        {
         DestroyVehicle(GroveCar[0]);
      DestroyVehicle(GroveCar[1]);
      DestroyVehicle(GroveCar[2]);
      DestroyVehicle(GroveCar[3]);
      DestroyVehicle(GroveCar[4]);
      DestroyVehicle(GroveCar[5]);
      DestroyVehicle(GroveCar[6]);
      GroveCar[0] = CreateTeamVehicle(TEAM_GROOVE,1, 600, 2485.0903, -1680.8488, 13.2813, 19.7400, 86, 86,RES_CAR_TIME);
      GroveCar[1] = CreateTeamVehicle(TEAM_GROOVE,1, 600, 2488.3083, -1680.7385, 13.2813, 19.7400, 86, 86,RES_CAR_TIME);
      GroveCar[2] = CreateTeamVehicle(TEAM_GROOVE,1, 492, 2506.0962, -1676.6655, 13.2813, -35.0400, 86, 86,RES_CAR_TIME);
      GroveCar[3] = CreateTeamVehicle(TEAM_GROOVE,1, 492, 2508.0857, -1666.6547, 13.2813, 11.1000, 86, 86,RES_CAR_TIME);
      GroveCar[4] = CreateTeamVehicle(TEAM_GROOVE,1, 492, 2501.6204, -1657.3187, 13.2813, 54.4800, 86, 86,RES_CAR_TIME);
      GroveCar[5] = CreateTeamVehicle(TEAM_GROOVE,1, 478, 2498.6013, -1684.0957, 13.2813, 13.5600, 86, 86,RES_CAR_TIME);
      GroveCar[6] = CreateTeamVehicle(TEAM_GROOVE,1, 482, 2505.4092, -1694.1656, 14.2813, 0.0000, 86, 86,RES_CAR_TIME);
        }
     else if(PI[playerid][pMember] == 12)
     {
         DestroyVehicle(VagosCar[0]);
      DestroyVehicle(VagosCar[1]);
      DestroyVehicle(VagosCar[2]);
      DestroyVehicle(VagosCar[3]);
      DestroyVehicle(VagosCar[4]);
      DestroyVehicle(VagosCar[5]);
      DestroyVehicle(VagosCar[6]);
      VagosCar[0] = CreateTeamVehicle(TEAM_VAGOS,1, 467, 2771.5327, -1623.8390, 10.8047, -27.6000, 6, 1,RES_CAR_TIME);
      VagosCar[1] = CreateTeamVehicle(TEAM_VAGOS,1, 467, 2776.0544, -1623.9009, 10.8047, -27.6000, 6, 1,RES_CAR_TIME);
      VagosCar[2] = CreateTeamVehicle(TEAM_VAGOS,1, 467, 2780.4949, -1623.8438, 10.8047, -27.6000, 6, 1,RES_CAR_TIME);
      VagosCar[3] = CreateTeamVehicle(TEAM_VAGOS,1, 474, 2779.6228, -1603.3281, 10.8047, -125.0400, 6, 1,RES_CAR_TIME);
      VagosCar[4] = CreateTeamVehicle(TEAM_VAGOS,1, 474, 2785.9009, -1603.1583, 10.8047, -125.0400, 6, 1,RES_CAR_TIME);
      VagosCar[5] = CreateTeamVehicle(TEAM_VAGOS,1, 478, 2769.9705, -1615.0035, 10.8047, -90.0000, 6, 1,RES_CAR_TIME);
      VagosCar[6] = CreateTeamVehicle(TEAM_VAGOS,1, 482, 2769.9705, -1606.8324, 10.8047, -90.0000, 6, 1,RES_CAR_TIME);
     }
     else if(PI[playerid][pMember] == 13)
     {
         DestroyVehicle(BallasCar[0]);
      DestroyVehicle(BallasCar[1]);
      DestroyVehicle(BallasCar[2]);
      DestroyVehicle(BallasCar[3]);
      DestroyVehicle(BallasCar[4]);
      DestroyVehicle(BallasCar[5]);
      DestroyVehicle(BallasCar[6]);
      DestroyVehicle(BallasCar[7]);
      BallasCar[0] = CreateTeamVehicle(TEAM_BALLAS,1, 566, 2003.5693, -1120.0043, 26.5752, 180.4030, 179, 179,RES_CAR_TIME);
      BallasCar[1] = CreateTeamVehicle(TEAM_BALLAS,1, 566, 2008.8434, -1129.2593, 25.0132, 90.0000, 179, 179,RES_CAR_TIME);
      BallasCar[2] = CreateTeamVehicle(TEAM_BALLAS,1, 566, 1985.5564, -1141.6482, 25.5184, 270.8255, 179, 179,RES_CAR_TIME);
      BallasCar[3] = CreateTeamVehicle(TEAM_BALLAS,1, 419, 1993.8208, -1141.5947, 25.3474, 270.0000, 179, 179,RES_CAR_TIME);
      BallasCar[4] = CreateTeamVehicle(TEAM_BALLAS,1, 419, 2001.6429, -1141.5061, 25.1574, 270.8112, 179, 179,RES_CAR_TIME);
      BallasCar[5] = CreateTeamVehicle(TEAM_BALLAS,1, 478, 1994.4465, -1095.7386, 24.9574, 344.2161, 179, 179,RES_CAR_TIME);
      BallasCar[6] = CreateTeamVehicle(TEAM_BALLAS,1, 478, 1998.7805, -1096.9128, 24.9574, 346.3077, 179, 179,RES_CAR_TIME);
      BallasCar[7] = CreateTeamVehicle(TEAM_BALLAS,1, 482, 2002.2770, -1097.8044, 24.9574, 345.6925, 179, 179,RES_CAR_TIME);
     }
     else if(PI[playerid][pMember] == 14)
     {
         DestroyVehicle(CoronosCar[0]);
      DestroyVehicle(CoronosCar[1]);
      DestroyVehicle(CoronosCar[2]);
      DestroyVehicle(CoronosCar[3]);
      DestroyVehicle(CoronosCar[4]);
      DestroyVehicle(CoronosCar[5]);
      DestroyVehicle(CoronosCar[6]);
      CoronosCar[0] = CreateTeamVehicle(TEAM_CORONOS,1, 567, 2516.9424, -2005.0195, 13.2656, 140.4600, 2, 2,RES_CAR_TIME);
      CoronosCar[1] = CreateTeamVehicle(TEAM_CORONOS,1, 567, 2512.8218, -2004.6410, 13.2656, 140.4600, 2, 2,RES_CAR_TIME);
      CoronosCar[2] = CreateTeamVehicle(TEAM_CORONOS,1, 567, 2508.7004, -2004.2294, 13.2656, 140.4600, 2, 2,RES_CAR_TIME);
      CoronosCar[3] = CreateTeamVehicle(TEAM_CORONOS,1, 535, 2514.5210, -2014.6700, 13.2656, 90.0000, 2, 2,RES_CAR_TIME);
      CoronosCar[4] = CreateTeamVehicle(TEAM_CORONOS,1, 535, 2506.8916, -2014.6700, 13.2656, 90.0000, 2, 2,RES_CAR_TIME);
      CoronosCar[5] = CreateTeamVehicle(TEAM_CORONOS,1, 478, 2530.8352, -2007.6204, 13.6256, 89.5200, 2, 2,RES_CAR_TIME);
      CoronosCar[6] = CreateTeamVehicle(TEAM_CORONOS,1, 482, 2530.8257, -2011.7937, 13.6256, 89.5200, 2, 2,RES_CAR_TIME);
     }
     else if(PI[playerid][pMember] == 15)
     {
         DestroyVehicle(RifaCar[0]);
      DestroyVehicle(RifaCar[1]);
      DestroyVehicle(RifaCar[2]);
      DestroyVehicle(RifaCar[3]);
      DestroyVehicle(RifaCar[4]);
      DestroyVehicle(RifaCar[5]);
      DestroyVehicle(RifaCar[6]);
      RifaCar[0] = CreateTeamVehicle(TEAM_RIFA,1, 529, 2177.5630, -1808.2943, 13.3516, -27.4200, 135, 135,RES_CAR_TIME);
      RifaCar[1] = CreateTeamVehicle(TEAM_RIFA,1, 529, 2173.5139, -1808.3468, 13.3516, -27.4200, 135, 135,RES_CAR_TIME);
      RifaCar[2] = CreateTeamVehicle(TEAM_RIFA,1, 529, 2169.4451, -1808.4357, 13.3516, -27.4200, 135, 135,RES_CAR_TIME);
      RifaCar[3] = CreateTeamVehicle(TEAM_RIFA,1, 439, 2172.6543, -1790.9640, 13.3516, -90.0000, 135, 135,RES_CAR_TIME);
      RifaCar[4] = CreateTeamVehicle(TEAM_RIFA,1, 439, 2165.4509, -1790.9640, 13.3516, -90.0000, 135, 135,RES_CAR_TIME);
      RifaCar[5] = CreateTeamVehicle(TEAM_RIFA,1, 478, 2190.1111, -1796.2930, 13.3516, 0.0000, 135, 135,RES_CAR_TIME);
      RifaCar[6] = CreateTeamVehicle(TEAM_RIFA,1, 482, 2190.1111, -1804.5145, 13.3516, 0.0000, 135, 135,RES_CAR_TIME);
     }
     format(string,sizeof(string),"[F] %s[%d] Çàñïàâíèë òðàíñïîðò áàíäû!",PN(playerid),playerid);
     SendTeamMessage(PI[playerid][pMember],COLOR_GREY,string);
    }
    if(listitem == 4)
    {
        new query[164];
     mysql_format(mysql, query, sizeof(query),"SELECT `NickName`, `Rank` FROM `qelksekm` WHERE `Member` = '%d'",PI[playerid][pMember]);
     mysql_tquery(mysql, query, "allmembers", "d",playerid);
    }
   }
  }


Тут Mysql + есть респавн карс. Запросы замени на свои . Если помог с тебя +


Всем привет!!!

Сообщение отредактировал SaintJhony - Среда, 15.02.2017, 21:34
  • Страница 1 из 1
  • 1
Поиск: