Этот урок поможет упростить вам ваши ранги, и изменять на будущие будет легче, начнем ..
Где все новые
пишем это:
Код:
new rtext[60];
Где все forward
Код:
forward ranks(targetid);
Ищем
Код:
public SetPlayerWeapons(playerid)
Ставим после его окончания следующее //Меняем на свои ранги:
Код:
{ if(gTeam[targetid] == 5 || PlayerInfo[targetid][pFMember] < 255)//The 2 Organisations { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Outsider"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Associate"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Soldier"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Capo"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Underboss"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "GTAgame"; } else { rtext = "Outsider"; } } else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)//PD Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Кадет"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Патрульный"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Cтарший патрульный"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Младший офицер"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Офицер"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Старший офицер"; } else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Зам.начальника ПА"; } else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Начальник ПА"; } else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Зам.начальника ДПС"; } else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Начальник ДПС"; } else if(PlayerInfo[targetid][pRank] == 11) { rtext = "Капитан"; } else if(PlayerInfo[targetid][pRank] == 12) { rtext = "Майор"; } else if(PlayerInfo[targetid][pRank] == 13) { rtext = "Подпалковник"; } else if(PlayerInfo[targetid][pRank] == 14) { rtext = "Палковник"; } else if(PlayerInfo[targetid][pRank] == 15) { rtext = "Зам Шефа Полиции"; } else if(PlayerInfo[targetid][pRank] == 16) { rtext = "Шеф Полиции:"; } else { rtext = "Кадет"; } } else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)//FBI Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Стажер"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Агент"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Специальный агент"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Секретный агент "; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Зам Главы Учебной подготовки"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Глава Учебной подготовки"; } else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Сотрудник CID"; } else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Глава CID"; } else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Сотрудник DEA"; } else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Глава DEA"; } else if(PlayerInfo[targetid][pRank] == 11) { rtext = "Заместитель директора"; } else if(PlayerInfo[targetid][pRank] == 12) { rtext = "Директор"; } else { rtext = "Стажер"; } } else if(PlayerInfo[targetid][pMember] == 20 || PlayerInfo[targetid][pLeader] == 20)//SWAT { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Новобранец"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Сержант Спец.отряда Delta Force"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Лейтенант Спец.отряда Delta Force"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Капитан Спец.отряда Delta Force"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Глава Спец.отряда Delta Force"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Сержант Спец.отряда Task Force"; } else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Лейтенант Спец.отряда Task Force"; } else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Капитан Спец.отряда Task Force"; } else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Глава Спец.отряда Task Force"; } else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Командир SWAT"; } else if(PlayerInfo[targetid][pRank] == 11) { rtext = "Генерал полковник SWAT"; } else if(PlayerInfo[targetid][pRank] == 12) { rtext = "Генерал SWAT"; } else { rtext = "Новобранец"; } } else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//NG Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Рядовой"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Ефрейтер"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Младший сержант"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Сержант"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Старший сержант"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Старшина"; } else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Прапорщик"; } else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Старший прапоршик"; } else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Младший летейнант"; } else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Летейнант"; } else if(PlayerInfo[targetid][pRank] == 11) { rtext = "Старший летейнант"; } else if(PlayerInfo[targetid][pRank] == 12) { rtext = "Капитан"; } else if(PlayerInfo[targetid][pRank] == 13) { rtext = "Маойр"; } else if(PlayerInfo[targetid][pRank] == 14) { rtext = "Подпалковник"; } else if(PlayerInfo[targetid][pRank] == 15) { rtext = "Палковник"; } else if(PlayerInfo[targetid][pRank] == 16) { rtext = "Генерал-майор"; } else if(PlayerInfo[targetid][pRank] == 17) { rtext = "Генерал-летейнант"; } else if(PlayerInfo[targetid][pRank] == 18) { rtext = "Генерал-палковник"; } else if(PlayerInfo[targetid][pRank] == 19) { rtext = "Генерал Армии"; } else if(PlayerInfo[targetid][pRank] == 20) { rtext = "Генерал BBC"; } else if(PlayerInfo[targetid][pRank] == 21) { rtext = "Адмирал флота"; } else if(PlayerInfo[targetid][pRank] == 22) { rtext = "Министр обороны"; } else { rtext = "Рядовой"; } } else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)//Hitman Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Ученик"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Мясник"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Киллер"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Агент"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Cпец.Агент"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Убийца"; } else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Найомный убийца"; } else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Профессионал"; } else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Зам.Директора"; } else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Директор"; } else { rtext = ""; } } else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)//NR Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Новичек"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Журналист"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Фотограф"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Редактор"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Главный редактор"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Продюссер"; } else { rtext = "Новичек"; } } else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//Taxi Company Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Новичек"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Таксист"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "VIP-Таксист"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Диспетчер"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Зам.директора"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Директор"; } else { rtext = "Новичек"; } } else if(IsAnInstructor(targetid))//Driving/Flying School Ranks { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Стажёр"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Ассистент инструктора"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Инструктор третьего класса"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Инструктор второго класса"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Инструктор первого класса"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Старший инструктор"; } else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Зам. Директора"; } else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Директор"; } else { rtext = "Стажёр"; } } else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12)//Gruv { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Пацан"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Боец"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Хулиган"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Бандит"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Палач"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Молодой "; } else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Древний "; } else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Отец"; } else { rtext = "Пацан"; } } else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 13)//El coronos { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Новенький"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Проверенный"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Продвинутый "; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Кент"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Ганстер"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Зам.главы отряда"; } else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Глава отряда"; } else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Головорез"; } else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Авторитет"; } else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Основной"; } else if(PlayerInfo[targetid][pRank] == 11) { rtext = "Зам.босса"; } else if(PlayerInfo[targetid][pRank] == 12) { rtext = "Босс"; } else { rtext = "Новенький"; } } else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14)//VAGAS { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Изгой"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Начинающий"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Местный"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Латинос"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Провереный"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Амиго"; } else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Мучачос"; } else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Солдат"; } else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Авторитет"; } else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Правая рука"; } else if(PlayerInfo[targetid][pRank] == 11) { rtext = "Падре"; } else { rtext = "Изгой"; } } else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15)//PM { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Шныр"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Фраер"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Вышибало"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Жиган"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Вор"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Смотрящий"; } else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Авторитет"; } else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Вор в Законе"; } else { rtext = "Шныри"; } } else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16)// Ballas { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Новичек"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Боец"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Близкий"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Бригадир"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Гангстер"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Авторитет"; } else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Советник"; } else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Отец"; } else { rtext = "Новичёк"; } } else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17)//bludz { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Чилкач "; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Сомнительный"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Пацан"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Ниггер"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Бандит"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Гангстер"; } else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Брат"; } else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Старший брат"; } else { rtext = "Чилкач "; } } else if(PlayerInfo[targetid][pMember] == 18 || PlayerInfo[targetid][pLeader] == 18)// Cripz { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Барыга"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Нигер"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Оружейник"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Рэкетир"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Боец"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Рекрутер"; } else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Правая рука"; } else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Главарь"; } else { rtext = "Барыга "; } } else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21)// OUTLAWS { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Мойщик мотоциклов"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Ученик"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Проверенный"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Вольный"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Заместитель"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Повелитель дорог"; } else { rtext = "Мойщик мотоциклов"; } } else if(PlayerInfo[targetid][pMember] == 19 || PlayerInfo[targetid][pLeader] == 19)//MS13 { if(PlayerInfo[targetid][pRank] == 1) { rtext = "Новобранец"; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Мутный"; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Провереный"; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Пацан"; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Местный"; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Местный"; } else if(PlayerInfo[targetid][pRank] == 7) { rtext = "Головорез"; } else if(PlayerInfo[targetid][pRank] == 8) { rtext = "Авторитет"; } else if(PlayerInfo[targetid][pRank] == 9) { rtext = "Правая Рука"; } else if(PlayerInfo[targetid][pRank] == 10) { rtext = "Главарь"; } else { rtext = "Новобранец"; } } else { rtext = "Нет ранга";//Тут можите написать none как хотите } }
Теперь будем менять другие паблики и команды:
Ищем
Код:
public ShowStats(playerid,targetid)
В нем нужно найти строчки:
Код:
if(PlayerInfo[targetid][pFMember] < 255) { f2text = FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyName]; } else { f2text = "None"; }
У удаляем все что после этого до строк:
Код:
new jtext[20];
Между всем этим надо поставить
Код:
{ ranks(targetid); }
На всякий случай сделайте копию мода