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