Advertisement
Guest User

Untitled

a guest
Jan 9th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.38 KB | None | 0 0
  1. stock showStats(playerid, targetid)
  2. {
  3. new param1[32],param2[32],param3[32],param100[32], param4[32], param70[32], param71[32], param72[32];
  4. new nxtlevel = playerVariables[targetid][pLevel];
  5. new expamount = nxtlevel*levelexp;
  6. switch(playerVariables[targetid][pGender])
  7. {
  8. case 1: param2 = "Masculin";
  9. case 2: param2 = "Feminin";
  10. default: param2 = "Masculin";
  11. }
  12. if(playerVariables[targetid][pCarModel1] >= 400)
  13. format(param4, sizeof(param4), "%s (ID %d)", VehicleNames[playerVariables[targetid][pCarModel1] - 400], playerVariables[targetid][pCarID1]);
  14. else
  15. param4 = "None";
  16.  
  17. if(playerVariables[targetid][pCarModel2] >= 400)
  18. format(param70, sizeof(param70), "%s (ID %d)", VehicleNames[playerVariables[targetid][pCarModel2] - 400], playerVariables[targetid][pCarID2]);
  19. else
  20. param70 = "None";
  21. if(playerVariables[targetid][pCarModel3] >= 400)
  22. format(param71, sizeof(param71), "%s (ID %d)", VehicleNames[playerVariables[targetid][pCarModel3] - 400], playerVariables[targetid][pCarID3]);
  23. else
  24. param71 = "None";
  25. if(playerVariables[targetid][pCarModel4] >= 400)
  26. format(param72, sizeof(param72), "%s (ID %d)", VehicleNames[playerVariables[targetid][pCarModel4] - 400], playerVariables[targetid][pCarID4]);
  27. else
  28. param72 = "None";
  29. new param20[182];
  30. if(playerVariables[targetid][pPhoneNumber] != -1)
  31. {
  32. format(param20,sizeof(param20),"%d",playerVariables[targetid][pPhoneNumber]);
  33. }
  34. else
  35. {
  36. param20 = "None";
  37. }
  38. if(playerVariables[targetid][pJob] == 0)
  39. {
  40. param1 = "Somer";
  41. }
  42. else
  43. {
  44. strcpy(param1, jobVariables[playerVariables[targetid][pJob]][jJobName], sizeof(param1));
  45. }
  46. new year, month, day;
  47. getdate(year,month,day);
  48. new coordsstring[256];
  49. format(coordsstring, sizeof(coordsstring),""ALBASTRU"» STATISTICI CONT: %s - %d.%d.%d «",playerVariables[targetid][pNormalName], day, month, year);
  50. SendClientMessage(playerid, COLOR_WHITE,coordsstring);
  51. format(szMessage, sizeof(szMessage), "| Level: %d | Sex: %s | Varsta: %d | Slujba: %s | Numar telefon: %s | Ore jucate: %d |", playerVariables[targetid][pLevel], param2, playerVariables[targetid][pAge], param1, param20, playerVariables[targetid][pPlayingHours]);
  52. SendClientMessage(playerid, COLOR_WHITE, szMessage);
  53. new donator[256];
  54. if(playerVariables[targetid][pDonate] == 0) donator = "Nu";
  55. else format(donator, sizeof(donator), "Da");
  56. format(szMessage, sizeof(szMessage), "| Cont Premium: %s | Premium Points: %d | Bani: $%s | Banca: $%s | Respect: %d/%d |", donator, playerVariables[targetid][pPremiumPoints], NumberFormat(playerVariables[targetid][pMoney]), NumberFormat(playerVariables[targetid][pBankMoney]), playerVariables[targetid][pRPoints], expamount);
  57. SendClientMessage(playerid, COLOR_WHITE, szMessage);
  58. if(playerVariables[targetid][pGroup] < 1)
  59. {
  60. param1 = "None";
  61. param2 = "None";
  62. }
  63. else
  64. {
  65. format(param1, sizeof(param1), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupName]);
  66. switch(playerVariables[targetid][pGroupRank])
  67. {
  68. case 1: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName1]);
  69. case 2: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName2]);
  70. case 3: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName3]);
  71. case 4: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName4]);
  72. case 5: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName5]);
  73. case 6: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName6]);
  74. case 7: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName7]);
  75. }
  76. }
  77. if(playerVariables[targetid][pWalkieTalkie] == -1) param3 = "None";
  78. else if(playerVariables[targetid][pWalkieTalkie] == 0) param3 = "Disabled";
  79. else format(param3, sizeof(param3), "#%d khz", playerVariables[targetid][pWalkieTalkie]);
  80. format(szMessage, sizeof(szMessage), "| Factiune: %s | Rank: %s (%d) | Materials: %d | Radio: %s | FireWork: %d |", param1, param2, playerVariables[targetid][pGroupRank], playerVariables[targetid][pMaterials], param3, playerVariables[targetid][pFireWork]);
  81. SendClientMessage(playerid, COLOR_WHITE, szMessage);
  82. if(playerVariables[targetid][pGroup] == 1 || playerVariables[targetid][pGroup] == 2 || playerVariables[targetid][pGroup] == 3)
  83. {
  84. format(szMessage, sizeof(szMessage), "| Arrests: %d | Crimes: %d | Credit: $%d | Warns: %d/3 | Lawer points: %d/3 | Faction warns: %d/3 | Faction punish: %d/20 |",playerVariables[targetid][pArrests], playerVariables[targetid][pCrimes], playerVariables[targetid][pPhoneCredit],playerVariables[targetid][pWarns],playerVariables[targetid][pRobPoints],playerVariables[targetid][pFWarns],playerVariables[targetid][pFPunish]);
  85. }
  86. else
  87. {
  88. if(playerVariables[targetid][pDonate] == 1)
  89. {
  90. format(szMessage, sizeof(szMessage), "| Arrests: %d | Crimes: %d | Credit: $%d | Warns: %d/3 | Rob points: %d/8 | Faction warns: %d/3 | Faction punish: %d/20 |",playerVariables[targetid][pArrests], playerVariables[targetid][pCrimes], playerVariables[targetid][pPhoneCredit],playerVariables[targetid][pWarns],playerVariables[targetid][pRobPoints],playerVariables[targetid][pFWarns],playerVariables[targetid][pFPunish]);
  91. }
  92. else
  93. {
  94. format(szMessage, sizeof(szMessage), "| Arrests: %d | Crimes: %d | Credit: $%d | Warns: %d/3 | Rob points: %d/10 | Faction warns: %d/3 | Faction punish: %d/20 |",playerVariables[targetid][pArrests], playerVariables[targetid][pCrimes], playerVariables[targetid][pPhoneCredit],playerVariables[targetid][pWarns],playerVariables[targetid][pRobPoints],playerVariables[targetid][pFWarns],playerVariables[targetid][pFPunish]);
  95. }
  96.  
  97. }
  98. SendClientMessage(playerid, COLOR_WHITE, szMessage);
  99. if(playerVariables[targetid][pClan] < 1)
  100. {
  101. param1 = "None";
  102. param100 = "None";
  103. }
  104. else
  105. {
  106. format(param1, sizeof(param1), "%s", clanVariables[playerVariables[targetid][pClan]][cClanName]);
  107. switch(playerVariables[targetid][pClanRank])
  108. {
  109. case 1: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName1]);
  110. case 2: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName2]);
  111. case 3: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName3]);
  112. case 4: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName4]);
  113. case 5: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName5]);
  114. case 6: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName6]);
  115. case 7: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName7]);
  116. }
  117. }
  118. format(szMessage, sizeof(szMessage), "| Drugs: %dg | Clan: %s | Rank: %s (%d) |",playerVariables[targetid][pDrugs], param1, param100,playerVariables[targetid][pClanRank]);
  119. SendClientMessage(playerid, COLOR_WHITE, szMessage);
  120. format(szMessage, sizeof(szMessage), "| House: %d | Business: %d | IP: %s | Skin: %d |",getPlayerHouseID(targetid), getPlayerBusinessID(targetid), playerVariables[targetid][pConnectionIP], playerVariables[targetid][pSkin]);
  121. SendClientMessage(playerid, COLOR_WHITE, szMessage);
  122. format(szMessage, sizeof(szMessage), "Vehicle 1: %s | Vehicle 2: %s | Vehicle 3: %s | Vehicle 4: %s ", param4, param70, param71, param72);
  123. SCM(playerid, COLOR_WHITE, szMessage);
  124.  
  125. new Float:HAFloats[2], country[MAX_COUNTRY_NAME];
  126. GetPlayerHealth(targetid,HAFloats[0]);
  127. GetPlayerArmour(targetid,HAFloats[1]);
  128. GetCountryName(playerVariables[targetid][pConnectionIP], country, sizeof(country));
  129. if(playerVariables[playerid][pAdminLevel] >= 1)
  130. {
  131. switch(playerVariables[targetid][pPrisonID])
  132. {
  133. case 0: format(szMessage, sizeof(szMessage), "| IP: %s | Health: %.1f | Armour: %.1f |", playerVariables[targetid][pConnectionIP],HAFloats[0], HAFloats[1]);
  134. case 1: format(szMessage, sizeof(szMessage), "| IP: %s | Health: %.1f | Armour: %.1f | Admin prison time: %d |", playerVariables[targetid][pConnectionIP], HAFloats[0], HAFloats[1], playerVariables[targetid][pPrisonTime]);
  135. case 2: format(szMessage, sizeof(szMessage), "| IP: %s | Health: %.1f | Armour: %.1f | Admin jail time: %d |", playerVariables[targetid][pConnectionIP], HAFloats[0], HAFloats[1], playerVariables[targetid][pPrisonTime]);
  136. case 3: format(szMessage, sizeof(szMessage), "| IP: %s | Health: %.1f | Armour: %.1f | Jail time: %d |", playerVariables[targetid][pConnectionIP], HAFloats[0], HAFloats[1], playerVariables[targetid][pPrisonTime]);
  137. }
  138. SendClientMessage(playerid, COLOR_LIGHTRED, szMessage);
  139. }
  140. format(coordsstring, sizeof(coordsstring),""ALBASTRU"----------------------------------------------------------------------------------");
  141. SendClientMessage(playerid, COLOR_LIGHTRED,coordsstring);
  142. return 1;
  143. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement