SHARE
TWEET

Untitled

a guest Jul 17th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public ShowStats(playerid,targetid)
  2. {
  3.     if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
  4.     {
  5.         new cash =  GetPlayerMoney(targetid);
  6.         new atext[20];
  7.         if(PlayerInfo[targetid][pSex] == 1) { atext = "Male"; }
  8.         else if(PlayerInfo[targetid][pSex] == 2) { atext = "Female"; }
  9.         new otext[20];
  10.         if(PlayerInfo[targetid][pOrigin] == 1) { otext = "USA"; }
  11.         else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Europe"; }
  12.         else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Asia"; }
  13.         new ttext[20];
  14.         if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Medic"; }
  15.         else if(gTeam[targetid] == 3 || gTeam[targetid] == 4) { ttext = "Civilian"; }
  16.         else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { ttext = "Officer"; }
  17.         else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { ttext = "FBI Agent"; }
  18.         else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "National Guard"; }
  19.         else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Firemen/Paramedic"; }
  20.         else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "LCN"; }
  21.         else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "Yakuza"; }
  22.         else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8) { ttext = "Hitmen"; }
  23.         else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ttext = "News Reporter"; }
  24.         else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { ttext = "Taxi"; }
  25.         else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "School Instructor"; }
  26.         new dtext[20];
  27.         if(STDPlayer[targetid] == 1) { dtext = "Chlamydia"; }
  28.         else if(STDPlayer[targetid] == 2) { dtext = "Gonorrhea"; }
  29.         else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
  30.         else { dtext = "None"; }
  31.         new ftext[20];
  32.         if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
  33.         { ftext = "Firemen/Paramedics"; }
  34.         else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)
  35.         { ftext = "La Cosa Nostra"; }
  36.         else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)
  37.         { ftext = "Yakuza"; }
  38.         else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11)
  39.         { ftext = "License Faction"; }
  40.         else
  41.         { ftext = "None"; }
  42.         new f2text[20];
  43.         if(PlayerInfo[targetid][pFMember] < 255) { f2text = FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyName]; }
  44.         else { f2text = "None"; }
  45.         new rtext[64];
  46.         if(gTeam[targetid] == 5 || PlayerInfo[targetid][pFMember] < 255)//The 2 Organisations
  47.         {
  48.             if(PlayerInfo[targetid][pRank] == 1) { rtext = "Outsider"; }
  49.             else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Associate"; }
  50.             else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Soldier"; }
  51.             else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Capo"; }
  52.             else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Underboss"; }
  53.             else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Godfather"; }
  54.             else { rtext = "Outsider"; }
  55.         }
  56.         else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)//PD Ranks
  57.         {
  58.             if(PlayerInfo[targetid][pRank] == 1) { rtext = "Cadet"; }
  59.             else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Officer"; }
  60.             else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Sergeant"; }
  61.             else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Lieutenant"; }
  62.             else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Captain"; }
  63.             else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Chief"; }
  64.             else { rtext = "Cadet"; }
  65.         }
  66.         else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)//FBI Ranks
  67.         {
  68.             if(PlayerInfo[targetid][pRank] == 1) { rtext = "Professional Staff"; }
  69.             else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Special Agent Trainee"; }
  70.             else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Special Agent"; }
  71.             else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Special Agent in Charge"; }
  72.             else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Assistant Director in Charge"; }
  73.             else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Director"; }
  74.             else { rtext = "Intern"; }
  75.         }
  76.         else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//NG Ranks
  77.         {
  78.             if(PlayerInfo[targetid][pRank] == 1) { rtext = "Private"; }
  79.             else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Sergeant"; }
  80.             else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Major"; }
  81.             else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Captain"; }
  82.             else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Lieutenant"; }
  83.             else if(PlayerInfo[targetid][pRank] == 6) { rtext = "General"; }
  84.             else { rtext = "Private"; }
  85.         }
  86.         else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)//Hitman Ranks
  87.         {
  88.             if(PlayerInfo[targetid][pRank] == 1) { rtext = "Freelancer"; }
  89.             else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Marksman"; }
  90.             else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Agent"; }
  91.             else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Special Agent"; }
  92.             else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vice-Director"; }
  93.             else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Director"; }
  94.             else { rtext = "Freelancer"; }
  95.         }
  96.         else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)//NR Ranks
  97.         {
  98.             if(PlayerInfo[targetid][pRank] == 1) { rtext = "Intern"; }
  99.             else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Local Reporter"; }
  100.             else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Local Editor"; }
  101.             else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Network Anchor"; }
  102.             else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Network Editor"; }
  103.             else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Network Producer"; }
  104.             else { rtext = "Intern"; }
  105.         }
  106.         else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//Taxi Company Ranks
  107.         {
  108.             if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
  109.             else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Taxi Rookie"; }
  110.             else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Cabbie"; }
  111.             else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Dispatcher"; }
  112.             else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Shift Supervisor"; }
  113.             else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Taxi Company Owner"; }
  114.             else { rtext = "Trainee"; }
  115.         }
  116.         else if(IsAnInstructor(targetid))//Driving/Flying School Ranks
  117.         {
  118.             if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
  119.             else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Instructor"; }
  120.             else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Senior Instructor"; }
  121.             else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Manager"; }
  122.             else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Under Boss"; }
  123.             else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
  124.             else { rtext = "Trainee"; }
  125.         }
  126.         else
  127.         {
  128.             rtext = "None";
  129.         }
  130.         new jtext[20];
  131.         if(PlayerInfo[targetid][pJob] == 1) { jtext = "Detective"; }
  132.         else if(PlayerInfo[targetid][pJob] == 2) { jtext = "Lawyer"; }
  133.         else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Whore"; }
  134.         else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Drugs Dealer"; }
  135.         else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Car Jacker"; }
  136.         else if(PlayerInfo[targetid][pJob] == 6) { jtext = "News Reporter"; }
  137.         else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Car Mechanic"; }
  138.         else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Bodyguard"; }
  139.         else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Arms Dealer"; }
  140.         else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Car Dealer"; }
  141.         else if(PlayerInfo[targetid][pJob] == 12) { jtext = "Boxer"; }
  142.         else if(PlayerInfo[targetid][pJob] == 14) { jtext = "Bus Driver"; }
  143.         else if(PlayerInfo[targetid][pJob] == 15) { jtext = "Paper Boy"; }
  144.         else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Trucker"; }
  145.         else { jtext = "None"; }
  146.         new drank[20];
  147.         if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Power User"; }
  148.         else if(PlayerInfo[targetid][pDonateRank] >= 2) { drank = "Donater"; }
  149.         else { drank = "None"; }
  150.         new married[20];
  151.         strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
  152.         new age = PlayerInfo[targetid][pAge];
  153.         new ptime = PlayerInfo[targetid][pConnectTime];
  154.         new lotto = PlayerInfo[targetid][pLottoNr];
  155.         new deaths = PlayerInfo[targetid][pDeaths];
  156.         new fishes = PlayerInfo[targetid][pFishes];
  157.         new bigfish = PlayerInfo[targetid][pBiggestFish];
  158.         new crimes = PlayerInfo[targetid][pCrimes];
  159.         new arrests = PlayerInfo[targetid][pArrested];
  160.         new warrests = PlayerInfo[targetid][pWantedDeaths];
  161.         new drugs = PlayerInfo[targetid][pDrugs];
  162.         new mats = PlayerInfo[targetid][pMats];
  163.         new wanted = WantedLevel[targetid];
  164.         new level = PlayerInfo[targetid][pLevel];
  165.         new exp = PlayerInfo[targetid][pExp];
  166.         new kills = PlayerInfo[targetid][pKills];
  167.         new pnumber = PlayerInfo[targetid][pPnumber];
  168.         new account = PlayerInfo[targetid][pAccount];
  169.         new nxtlevel = PlayerInfo[targetid][pLevel]+1;
  170.         new expamount = nxtlevel*levelexp;
  171.         new costlevel = nxtlevel*levelcost;//10k for testing purposes
  172.         new housekey = PlayerInfo[targetid][pPhousekey];
  173.         new bizkey = PlayerInfo[targetid][pPbiskey];
  174.         new intir = PlayerInfo[targetid][pInt];
  175.         new local = PlayerInfo[targetid][pLocal];
  176.         new Float:shealth = PlayerInfo[targetid][pSHealth];
  177.         new Float:health;
  178.         new name[MAX_PLAYER_NAME];
  179.         GetPlayerName(targetid, name, sizeof(name));
  180.         GetPlayerHealth(targetid,health);
  181.         new Float:px,Float:py,Float:pz;
  182.         GetPlayerPos(targetid, px, py, pz);
  183.         new coordsstring[164];
  184.         new coordsstring1[164];
  185.         new coordsstring2[164];
  186.         new coordsstring3[164];
  187.         new coordsstring4[164];
  188.         new coordsstring5[164];
  189.         new coordsstring6[164];
  190.         new stats[1148];
  191.         format(coordsstring1, sizeof(coordsstring1),"*** %s ***",name);
  192.         format(coordsstring2, sizeof(coordsstring2), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s]  SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] Ph:[%d] \n\n", level,atext,age,otext,shealth+50, cash, account, pnumber);
  193.         format(coordsstring3, sizeof(coordsstring3), "DonateRank:[%s] MarriedTo:[%s] PlayingHours:[%d] LottoNr:[%d] Job:[%s] \n\n", drank,married,ptime,lotto,jtext);
  194.         format(coordsstring4, sizeof(coordsstring4), "FishesCaught:[%d] BiggestFish:[%d] CrimesCommited:[%d] TimesArrested:[%d] WantedDeaths:[%d] \n\n", fishes,bigfish,crimes,arrests,warrests );
  195.         format(coordsstring5, sizeof(coordsstring5), "Kills:[%d] Deaths:[%d] NextLevel:[$%d] Respect:[%d/%d] WantedLevel:[%d] Family:[%s] \n\n",kills,deaths,costlevel,exp,expamount,wanted,f2text);
  196.         format(coordsstring6, sizeof(coordsstring6), "Drugs:[%d] Materials:[%d] Team:[%s] Disease:[%s] Organisation:[%s] Rank:[%s] \n\n ",drugs,mats,ttext,dtext,ftext,rtext);
  197.         format(stats, 512," %s%s%s%s%s%s",coordsstring1,coordsstring2,coordsstring3,coordsstring4,coordsstring5,coordsstring6);
  198.         ShowPlayerDialog(playerid, 667, DIALOG_STYLE_MSGBOX, "Status", stats , "Ok", "napomena");
  199.         if (PlayerInfo[playerid][pAdmin] >= 1)
  200.         {
  201.             format(coordsstring, sizeof(coordsstring), "House key [%d] Business key [%d] HireKey [%d] int:[%d] local[%d]", housekey,bizkey,HireCar[targetid],intir,local);
  202.             format(stats, 512," %s%s%s%s%s%s%s",coordsstring1,coordsstring2,coordsstring3,coordsstring4,coordsstring5,coordsstring6,coordsstring);
  203.             ShowPlayerDialog(playerid, 667, DIALOG_STYLE_MSGBOX, "Status", stats , "Ok", "Napomena");
  204.         }
  205.         SCM(playerid, COLOR_GREEN,"Pregled statusa tvog accounta");  // #define SCM SendClientMessage
  206.     }
  207. }
RAW Paste Data
Pastebin PRO BLACK FRIDAY Special!
Get 60% OFF on Pastebin PRO accounts!
Top