• Страница 1 из 1
  • 1
Делаем Статистику как на Samp-VL
Дмитрий Дата: Понедельник, 30.07.2012, 11:47 | Сообщение # 1 | Сообщить о нерабочей теме


Аватар для Дмитрий

Всем Привет Сегодня Мы будем делать статистику как на Samp-VL



- Автор:Егорчик

Найдем public ShowStats(playerid,targetid) или stock ShowStats(playerid,targetid) Удаляем его полностью и заменяем на мой !!!


From Russia With Love!
Дмитрий Дата: Понедельник, 30.07.2012, 11:48 | Сообщение # 2 | Сообщить о нерабочей теме


Аватар для Дмитрий

Code
public ShowStats(playerid,targetid)  
{  
     if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))  
     {  
         new atext[32];  
         if(PlayerInfo[targetid][pSex] == 1) { atext = "Мужчина"; }  
         else if(PlayerInfo[targetid][pSex] == 2) { atext = "Женщина"; }  
         new ttext[32];  
         if(PlayerInfo[targetid][pMember] == 0 && PlayerInfo[targetid][pLeader] == 0) { ttext = "Неизвестно"; }  
         else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { ttext = "LSPD"; }  
         else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { ttext = "ФБР"; }  
         else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "Авианосец"; }  
         else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "МЧС Сан Фиерро"; }  
         else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "ЛКН"; }  
         else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "Yakuza"; }  
         else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7) { ttext = "Мэрия"; }  
         else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8) { ttext = "Casino Bellagio"; }  
         else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ttext = "SF NEWS"; }  
         else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { ttext = "SFPD"; }  
         else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "Инструкторы"; }  
         else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12) { ttext = "The Ballas"; }  
         else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 13) { ttext = "Vagos Gang"; }  
         else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14) { ttext = "Русская Мафия"; }  
         else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15) { ttext = "Grove Street"; }  
         else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 15) { ttext = "LS NEWS"; }  
         else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17) { ttext = "The Aztecas"; }  
         else if(PlayerInfo[targetid][pMember] == 18 || PlayerInfo[targetid][pLeader] == 18) { ttext = "The Rifa"; }  
         else if(PlayerInfo[targetid][pMember] == 19 || PlayerInfo[targetid][pLeader] == 19) { ttext = "Зона 51"; }  
         else if(PlayerInfo[targetid][pMember] == 20 || PlayerInfo[targetid][pLeader] == 20) { ttext = "LV NEWS"; }  
         else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21) { ttext = "LVPD"; }  
         new jtext[20];  
         new rangz[20];  
         //-------- Ранги ----------  
         //fam  
          if(PlayerInfo[targetid][pMember] == 0)  
         {  
         if(PlayerInfo[targetid][pRank] == 0) { rangz = "Нету"; }  
         }  
         if(PlayerInfo[targetid][pMember] == 5)  
         {  
             if(PlayerInfo[targetid][pRank] == 10) { rangz = "Дон"; }  
             else if(PlayerInfo[targetid][pRank] == 9) { rangz = "Консильери"; }  
             else if(PlayerInfo[targetid][pRank] == 8) { rangz = "Младший Босс"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Капо"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "Сотто-Капо"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Боец"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Солдато"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Сомбаттенте"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Ассосиато"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Новицио"; }  
         }  
         if(PlayerInfo[targetid][pMember] == 11)  
         {  
             if(PlayerInfo[targetid][pRank] == 8) { rangz = "Управляющий"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Директор"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "Старший менеджер"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Мл. менеджер"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Кординатор"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Инструктор"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Экзаменатор"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Стажёр"; }  
         }  
         //--- Бады  
         if(PlayerInfo[targetid][pMember] == 12)  
         {  
             if(PlayerInfo[targetid][pRank] == 10) { rangz = "Биг Вилли"; }  
             else if(PlayerInfo[targetid][pRank] == 9) { rangz = "Райч Нига"; }  
             else if(PlayerInfo[targetid][pRank] == 8) { rangz = "Фолкс"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Федерал Блок"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "Гангстер"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Ап Бро"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Гун брo"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Крэкер"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Младший Нига"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Блайд"; }  
         }  
         if(PlayerInfo[targetid][pMember] == 17)  
         {  
             if(PlayerInfo[targetid][pRank] == 10) { rangz = "Падре"; }  
             else if(PlayerInfo[targetid][pRank] == 9) { rangz = "Нестро"; }  
             else if(PlayerInfo[targetid][pRank] == 8) { rangz = "Тесосеро"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Инвасор"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "Сабио"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Мирандо"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Лас Геррас"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Геттор"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Тирадор"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Перро"; }  
         }  
         if(PlayerInfo[playerid][pMember] == 18)  
         {  
             if(PlayerInfo[targetid][pRank] == 10) { rangz = "Падре"; }  
             else if(PlayerInfo[targetid][pRank] == 9) { rangz = "Аджунто"; }  
             else if(PlayerInfo[targetid][pRank] == 8) { rangz = "Ауторидад"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Бандидо"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "Эрмано"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Джуниор"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Мачo"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Амиго"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Ладрон"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Новато"; }  
         }  
         if(PlayerInfo[targetid][pMember] == 13)  
         {  
             if(PlayerInfo[targetid][pRank] == 11) { rangz = "Падре"; }  
             else if(PlayerInfo[targetid][pRank] == 10) { rangz = "Падрино"; }  
             else if(PlayerInfo[targetid][pRank] == 9) { rangz = "Лидер V.E.G."; }  
             else if(PlayerInfo[targetid][pRank] == 8) { rangz = "Асесор"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Авторитарио"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "Асесино"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Амиго"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Эстимадо"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Сольдадо"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Криминаль"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Новато"; }  
         }  
         if(PlayerInfo[targetid][pMember] == 15)  
         {  
             if(PlayerInfo[targetid][pRank] == 10) { rangz = "Мэд Дог"; }  
             else if(PlayerInfo[targetid][pRank] == 9) { rangz = "Легенд"; }  
             else if(PlayerInfo[targetid][pRank] == 8) { rangz = "Де Кинг"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Мобста"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "О.Г."; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Гангста"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Юонг"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Килла"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Хастла"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Плэйя"; }  
         }  
         if(PlayerInfo[targetid][pMember] == 14)  
         {  
             if(PlayerInfo[targetid][pRank] == 8) { rangz = "Вор в законе"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Авторитет"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "Смотрящи"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Вор"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Жиган"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Выш****а"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Фраер"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Шнырь"; }  
         }  
         //---  
         if(PlayerInfo[targetid][pMember] == 6)  
         {  
             if(PlayerInfo[targetid][pRank] == 10) { rangz = "Кумитё"; }  
             else if(PlayerInfo[targetid][pRank] == 9) { rangz = "Оябун-кобун"; }  
             else if(PlayerInfo[targetid][pRank] == 8) { rangz = "Cайко комон"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Оядзи"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "Камбу"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Со-хобунтё"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Вакагасира"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Сятейгасира"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Кёдай"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Вакасю"; }  
         }  
         if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pMember] == 20)  
         {  
             if(PlayerInfo[targetid][pRank] == 6) { rangz = "Главный редактор"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Редактор"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Журналист"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Папарацци"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Фотограф"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Стажер"; }  
         }  
         if(PlayerInfo[targetid][pMember] == 8)  
         {  
             if(PlayerInfo[targetid][pRank] == 5) { rangz = "Директор"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Зам. директора"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Крупье"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Охранник"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Чипер"; }  
         }  
         //fam--  
         //army--  
         if(PlayerInfo[targetid][pMember] == 3)  
         {  
             if(PlayerInfo[targetid][pRank] == 16) { rangz = "Адмирал"; }  
             else if(PlayerInfo[targetid][pRank] == 15) { rangz = "Вице-адмирал"; }  
             else if(PlayerInfo[targetid][pRank] == 14) { rangz = "Контр-адмирал"; }  
             else if(PlayerInfo[targetid][pRank] == 13) { rangz = "Капитан-лейтенант";}  
             else if(PlayerInfo[targetid][pRank] == 12) { rangz = "Ст. Лейтенант"; }  
             else if(PlayerInfo[targetid][pRank] == 11) { rangz = "Лейтенант"; }  
             else if(PlayerInfo[targetid][pRank] == 10) { rangz = "Мл. Лейтенант"; }  
             else if(PlayerInfo[targetid][pRank] == 9) { rangz = " Ст. Мичман"; }  
             else if(PlayerInfo[targetid][pRank] == 8) { rangz = "Мичман"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Прапорщик"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "Боцман"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Гл. Старшина"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Старшина"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Ст. Матрос"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Матрос"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Юнга"; }  
         }  
         if(PlayerInfo[targetid][pMember] == 19)  
         {  
             if(PlayerInfo[targetid][pRank] == 16) { rangz = "Генерал"; }  
             else if(PlayerInfo[targetid][pRank] == 15) { rangz = "Полковник"; }  
             else if(PlayerInfo[targetid][pRank] == 14) { rangz = "Подполковник"; }  
             else if(PlayerInfo[targetid][pRank] == 13) { rangz = "Ма";}  
             else if(PlayerInfo[targetid][pRank] == 12) { rangz = "Капитан"; }  
             else if(PlayerInfo[targetid][pRank] == 11) { rangz = "Старший лейтенант"; }  
             else if(PlayerInfo[targetid][pRank] == 10) { rangz = "Лейтенант"; }  
             else if(PlayerInfo[targetid][pRank] == 9) { rangz = "Младший лейтенант"; }  
             else if(PlayerInfo[targetid][pRank] == 8) { rangz = "Старший прапорщик"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Прапорщик"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "Старшина"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Ст. Сержант"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Сержант"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Мл. Сержант"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Ефрейтор"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Рядовой"; }  
         }  
         if(PlayerInfo[targetid][pMember] == 2)  
         {  
             if(PlayerInfo[targetid][pRank] == 8) { rangz = "Директор"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Зам. директора"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "Инспектор"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Начальник секции"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Специальный агент"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Старший агент"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Агент"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Стажёр"; }  
         }  
         if(PlayerInfo[targetid][pMember] == 7)  
         {  
             if(PlayerInfo[targetid][pRank] == 12) { rangz = "Мэр"; }  
             else if(PlayerInfo[targetid][pRank] == 11) { rangz = "Зам. Мэра"; }  
             else if(PlayerInfo[targetid][pRank] == 10) { rangz = "Министр Транспорта"; }  
             else if(PlayerInfo[targetid][pRank] == 9) { rangz = "Министр Здр.Охран."; }  
             else if(PlayerInfo[targetid][pRank] == 8) { rangz = "Министр Обороны"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Министр Культуры"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "Министр Финансов"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Адвокат"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Начальник Охраны"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Телохранитель"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Охранник"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Служащий"; }  
         }  
         if(PlayerInfo[playerid][pMember] == 1)  
         {  
             if(PlayerInfo[targetid][pRank] == 15) { rangz = "Шериф"; }  
             else if(PlayerInfo[targetid][pRank] == 14) { rangz = "Полковник"; }  
             else if(PlayerInfo[targetid][pRank] == 13) { rangz = "Подполковник";}  
             else if(PlayerInfo[targetid][pRank] == 12) { rangz = "Майор"; }  
             else if(PlayerInfo[targetid][pRank] == 11) { rangz = "Капитан"; }  
             else if(PlayerInfo[targetid][pRank] == 10) { rangz = "Ст. Лейтенант"; }  
             else if(PlayerInfo[targetid][pRank] == 9) { rangz = "Лейтенант"; }  
             else if(PlayerInfo[targetid][pRank] == 8) { rangz = "Мл. Лейтенант"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Ст. Прапорщик"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "Прапорщик"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Ст. Сержант"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Сержант"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Мл. Сержант"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Офицер"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Кадет"; }  
         }


From Russia With Love!
Дмитрий Дата: Понедельник, 30.07.2012, 11:48 | Сообщение # 3 | Сообщить о нерабочей теме


Аватар для Дмитрий

Code
        if(PlayerInfo[targetid][pMember] == 21)  
         {  
             if(PlayerInfo[targetid][pRank] == 15) { rangz = "Шериф"; }  
             else if(PlayerInfo[targetid][pRank] == 14) { rangz = "Полковник"; }  
             else if(PlayerInfo[targetid][pRank] == 13) { rangz = "Подполковник";}  
             else if(PlayerInfo[targetid][pRank] == 12) { rangz = "Майор"; }  
             else if(PlayerInfo[targetid][pRank] == 11) { rangz = "Капитан"; }  
             else if(PlayerInfo[targetid][pRank] == 10) { rangz = "Ст. Лейтенант"; }  
             else if(PlayerInfo[targetid][pRank] == 9) { rangz = "Лейтенант"; }  
             else if(PlayerInfo[targetid][pRank] == 8) { rangz = "Мл. Лейтенант"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Ст. Прапорщик"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "Прапорщик"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Ст. Сержант"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Сержант"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Мл. Сержант"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Офицер"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Кадет"; }  
         }  
         if(PlayerInfo[targetid][pMember] == 10)  
         {  
             if(PlayerInfo[targetid][pRank] == 15) { rangz = "Шериф"; }  
             else if(PlayerInfo[targetid][pRank] == 14) { rangz = "Полковник"; }  
             else if(PlayerInfo[targetid][pRank] == 13) { rangz = "Подполковник";}  
             else if(PlayerInfo[targetid][pRank] == 12) { rangz = "Майор"; }  
             else if(PlayerInfo[targetid][pRank] == 11) { rangz = "Капитан"; }  
             else if(PlayerInfo[targetid][pRank] == 10) { rangz = "Ст. Лейтенант"; }  
             else if(PlayerInfo[targetid][pRank] == 9) { rangz = "Лейтенант"; }  
             else if(PlayerInfo[targetid][pRank] == 8) { rangz = "Мл. Лейтенант"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Ст. Прапорщик"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "Прапорщик"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Ст. Сержант"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Сержант"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Мл. Сержант"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Офицер"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Кадет"; }  
         }  
         if(PlayerInfo[targetid][pMember] == 4)  
         {  
             if(PlayerInfo[targetid][pRank] == 8) { rangz = "Глав. врач"; }  
             else if(PlayerInfo[targetid][pRank] == 7) { rangz = "Терапевт"; }  
             else if(PlayerInfo[targetid][pRank] == 6) { rangz = "Хирург"; }  
             else if(PlayerInfo[targetid][pRank] == 5) { rangz = "Педиатр"; }  
             else if(PlayerInfo[targetid][pRank] == 4) { rangz = "Санитар"; }  
             else if(PlayerInfo[targetid][pRank] == 3) { rangz = "Интерн"; }  
             else if(PlayerInfo[targetid][pRank] == 2) { rangz = "Стажёр"; }  
             else if(PlayerInfo[targetid][pRank] == 1) { rangz = "Практикант"; }  
         }  
         //-------------------------  
         if(PlayerInfo[targetid][pJob] == 1) { jtext = "Водитель автобуса"; }  
         else if(PlayerInfo[targetid][pJob] == 2) { jtext = "Механик"; }  
         else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Продавец хотдогов"; }  
         else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Таксист"; }  
         else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Развозчик продуктов"; }  
         else if(PlayerInfo[targetid][pJob] == 6) { jtext = "Тренер"; }  
         else if(PlayerInfo[targetid][pJob] == 30) { jtext = "Прораб"; }  
         else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Инкосатор"; }  
         else if(PlayerInfo[targetid][pJob] == 99) { jtext = "Дальнобойщик"; }  
         else { jtext = "Безработный"; }  
         new stringus[100];  
         new string[100];  
         new name[MAX_PLAYER_NAME];  
         new sendername[MAX_PLAYER_NAME];  
         GetPlayerName(targetid, sendername, sizeof(sendername));  
         format(stringus, sizeof(stringus), "%s.ini",sendername);  
         new file = ini_openFile(stringus);  
         if(file < 0) print("нету файла");  
         else  
         {  
             ini_getString(file,"MarriedTo",stringus);  
             ini_closeFile(file);//не забываем закрывать файлы кстати  
             new cash = PlayerInfo[targetid][pCash];  
             new drugs = PlayerInfo[targetid][pDrugs];  
             new mats = PlayerInfo[targetid][pMats];  
             new level = PlayerInfo[targetid][pLevel];  
             new exp = PlayerInfo[targetid][pExp];  
             new nxtlevel = PlayerInfo[targetid][pLevel]+1;  
             new expamount = nxtlevel*levelexp;  
             new pnumber = PlayerInfo[targetid][pPnumber];  
             new warns = PlayerInfo[targetid][pWarns];  
             new zakon = PlayerInfo[targetid][pZakonp];  
             new narko = PlayerInfo[targetid][pNarcoZavisimost];  
             new crimes = PlayerInfo[playerid][pCrimes];  
             if(PlayerInfo[targetid][pMarried] == 0) { stringus = "Нету"; }  
             new stringi[256];  
             GetPlayerName(targetid, name, sizeof(name));  
             format(string,sizeof(string),"%s.ini",name);  
             new File = ini_openFile(string);  
             ini_getString(File,"pDataReg",stringi);  
             ini_closeFile(File);  
             new playerip[256];  
             GetPlayerIp(targetid, playerip, sizeof(playerip));  
             new coordsstring[1200];  
             new msg[] = "{ffffff}Логин:\t\t\t\t%s\n\nУровень:\t\t\t%d (%d/%d)\nДеньги:\t\t\t\t%d\nТелефон:\t\t\t%d\nWarns:\t\t\t\t%d\n\nЗаконопослушность:\t\t%d\nПреступлений:\t\t\t%d\nНаркозависимость:\t\t%d\n\nНа ркотики:\t\t\t%d\nМатериалы:\t\t\t%d\n\nОрганизация:\t\t\t%s\nРанг:\t\t\t\t%s\nРабота:\t\t\t\t%s\n\nПол:\t\t\t\t%s\nЖена/Муж:\t\t\t%s";  
             format(coordsstring, 1000, msg, name,level,exp,expamount,cash,pnumber,warns,zakon,crimes,narko,drugs,mats,ttext,rangz,jtext,atext,stringus);  
             ShowPlayerDialog(playerid,10004,DIALOG_STYLE_MSGBOX,"Статистика персонажа",coordsstring,"Ок","");  
         }  
     }  
}  


Только Сразу скажу что не будет Подписи Т.к Делал для своего Мода. А так точная копия Samp-VL


From Russia With Love!
  • Страница 1 из 1
  • 1
Поиск: