Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock showStats(playerid, targetid)
- {
- new param1[32],param2[32],param3[32],param100[32], param4[32], param70[32], param71[32], param72[32];
- new nxtlevel = playerVariables[targetid][pLevel];
- new expamount = nxtlevel*levelexp;
- switch(playerVariables[targetid][pGender])
- {
- case 1: param2 = "Masculin";
- case 2: param2 = "Feminin";
- default: param2 = "Masculin";
- }
- if(playerVariables[targetid][pCarModel1] >= 400)
- format(param4, sizeof(param4), "%s (ID %d)", VehicleNames[playerVariables[targetid][pCarModel1] - 400], playerVariables[targetid][pCarID1]);
- else
- param4 = "None";
- if(playerVariables[targetid][pCarModel2] >= 400)
- format(param70, sizeof(param70), "%s (ID %d)", VehicleNames[playerVariables[targetid][pCarModel2] - 400], playerVariables[targetid][pCarID2]);
- else
- param70 = "None";
- if(playerVariables[targetid][pCarModel3] >= 400)
- format(param71, sizeof(param71), "%s (ID %d)", VehicleNames[playerVariables[targetid][pCarModel3] - 400], playerVariables[targetid][pCarID3]);
- else
- param71 = "None";
- if(playerVariables[targetid][pCarModel4] >= 400)
- format(param72, sizeof(param72), "%s (ID %d)", VehicleNames[playerVariables[targetid][pCarModel4] - 400], playerVariables[targetid][pCarID4]);
- else
- param72 = "None";
- new param20[182];
- if(playerVariables[targetid][pPhoneNumber] != -1)
- {
- format(param20,sizeof(param20),"%d",playerVariables[targetid][pPhoneNumber]);
- }
- else
- {
- param20 = "None";
- }
- if(playerVariables[targetid][pJob] == 0)
- {
- param1 = "Somer";
- }
- else
- {
- strcpy(param1, jobVariables[playerVariables[targetid][pJob]][jJobName], sizeof(param1));
- }
- new year, month, day;
- getdate(year,month,day);
- new coordsstring[256];
- format(coordsstring, sizeof(coordsstring),""ALBASTRU"» STATISTICI CONT: %s - %d.%d.%d «",playerVariables[targetid][pNormalName], day, month, year);
- SendClientMessage(playerid, COLOR_WHITE,coordsstring);
- 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]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- new donator[256];
- if(playerVariables[targetid][pDonate] == 0) donator = "Nu";
- else format(donator, sizeof(donator), "Da");
- 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);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- if(playerVariables[targetid][pGroup] < 1)
- {
- param1 = "None";
- param2 = "None";
- }
- else
- {
- format(param1, sizeof(param1), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupName]);
- switch(playerVariables[targetid][pGroupRank])
- {
- case 1: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName1]);
- case 2: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName2]);
- case 3: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName3]);
- case 4: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName4]);
- case 5: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName5]);
- case 6: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName6]);
- case 7: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName7]);
- }
- }
- if(playerVariables[targetid][pWalkieTalkie] == -1) param3 = "None";
- else if(playerVariables[targetid][pWalkieTalkie] == 0) param3 = "Disabled";
- else format(param3, sizeof(param3), "#%d khz", playerVariables[targetid][pWalkieTalkie]);
- 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]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- if(playerVariables[targetid][pGroup] == 1 || playerVariables[targetid][pGroup] == 2 || playerVariables[targetid][pGroup] == 3)
- {
- 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]);
- }
- else
- {
- if(playerVariables[targetid][pDonate] == 1)
- {
- 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]);
- }
- else
- {
- 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]);
- }
- }
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- if(playerVariables[targetid][pClan] < 1)
- {
- param1 = "None";
- param100 = "None";
- }
- else
- {
- format(param1, sizeof(param1), "%s", clanVariables[playerVariables[targetid][pClan]][cClanName]);
- switch(playerVariables[targetid][pClanRank])
- {
- case 1: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName1]);
- case 2: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName2]);
- case 3: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName3]);
- case 4: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName4]);
- case 5: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName5]);
- case 6: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName6]);
- case 7: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName7]);
- }
- }
- format(szMessage, sizeof(szMessage), "| Drugs: %dg | Clan: %s | Rank: %s (%d) |",playerVariables[targetid][pDrugs], param1, param100,playerVariables[targetid][pClanRank]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- format(szMessage, sizeof(szMessage), "| House: %d | Business: %d | IP: %s | Skin: %d |",getPlayerHouseID(targetid), getPlayerBusinessID(targetid), playerVariables[targetid][pConnectionIP], playerVariables[targetid][pSkin]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- format(szMessage, sizeof(szMessage), "Vehicle 1: %s | Vehicle 2: %s | Vehicle 3: %s | Vehicle 4: %s ", param4, param70, param71, param72);
- SCM(playerid, COLOR_WHITE, szMessage);
- new Float:HAFloats[2], country[MAX_COUNTRY_NAME];
- GetPlayerHealth(targetid,HAFloats[0]);
- GetPlayerArmour(targetid,HAFloats[1]);
- GetCountryName(playerVariables[targetid][pConnectionIP], country, sizeof(country));
- if(playerVariables[playerid][pAdminLevel] >= 1)
- {
- switch(playerVariables[targetid][pPrisonID])
- {
- case 0: format(szMessage, sizeof(szMessage), "| IP: %s | Health: %.1f | Armour: %.1f |", playerVariables[targetid][pConnectionIP],HAFloats[0], HAFloats[1]);
- 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]);
- 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]);
- 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]);
- }
- SendClientMessage(playerid, COLOR_LIGHTRED, szMessage);
- }
- format(coordsstring, sizeof(coordsstring),""ALBASTRU"----------------------------------------------------------------------------------");
- SendClientMessage(playerid, COLOR_LIGHTRED,coordsstring);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement