17.07.2015, 15:10
Add that in the upper of your /stats command:
We define szStr1
Then
and szShowString.
and that's the command.
Don't forget 'bout +REP if I helped you
Код:
new szStr1[121],
Then
Код:
szShowString[698];
and that's the command.
Код:
format(coordsstring, sizeof(coordsstring), "___________________________________________________________________");
format(coordsstring, sizeof(coordsstring), "[Account]: Name:[%s] Sex:[%s] Level:[%d] Respect:[%d/%d] Phone:[%d]",PlayerRPName(targetid),atext,level,exp,expamount,pnumber);
format(coordsstring, sizeof(coordsstring), "[Details]: Money:[$%d] Bank:[$%d] Next Level Cost:[%d] Job:[%s] Job Level:[%s]",cash,account,costlevel,jtext,jlevel);
format(coordsstring, sizeof(coordsstring), "[Details]: Married To:[%s] Affiliation:[%s] Rank:[%s (%d)]",married,GetPlayerFactionName(targetid),GetPlayerRank(targetid),PlayerInfo[targetid][pRank]);
format(coordsstring, sizeof(coordsstring), "[Upgrades]: Upgrade Points:[%d] Armor Upgrade:[%d] Health Upgrade:[%d] VIP:[%s]",points,shealth,shp,vip);
format(coordsstring, sizeof(coordsstring), "[Property]: House:[%s] | Vehicle 1:[%s] | Vehicle 2:[%s] | Business:[%s]",htext,cartext1,cartext2,btext);
format(coordsstring, sizeof(coordsstring), "[Inventory]: Materials:[%d] Pot:[%d] Crack:[%d] Package:[%d] Crates:[%d] Seeds:[%d] Products:[%d]",mats,pot,crack,packages,crates,potseeds,products);
format(coordsstring, sizeof(coordsstring), "[Inventory]: Ropes:[%d] Blindfolds:[%d] Cigars:[%d] Sprunk:[%d] Spraycan:[%d] Screw Driver:[%d] Deck of Cards:[%d] WTc:[%d]",rope,blindfolds,cigars,sprunk,spray,screw,deck,wtc);
format(coordsstring, sizeof(coordsstring), "[Inventory]: Rod:[%s] Bait:[%s] Bait Left:[%d] Fishing Line[%s]", rod, bait, baita, line);
format(coordsstring, sizeof(coordsstring), "[Records]: Playing Hours:[%d] Kills:[%d] Deaths:[%d] Biggest Fish:[%d] Crimes Commited:[%d] Times Arrested:[%d]",ptime,kills,deaths,bigfish,crimes,arrested);
ShowPlayerDialog(playerid, 8373, DIALOG_STYLE_MSGBOX, "Your Statistics", szShowString, "Ok","");
return 1;
if(PlayerInfo[playerid][pAdmin] >= 2)
{
format(coordsstring, sizeof(coordsstring), "[Admin Info] Vehicle 1 ID: %d | Vehicle 1 TID: %d | Vehicle 2 ID: %d | Vehicle 2 TID: %d", PlayerInfo[targetid][pCar][0], CarInfo[PlayerInfo[targetid][pCar][0]][c_ID], PlayerInfo[targetid][pCar][1], CarInfo[PlayerInfo[targetid][pCar][1]][c_ID]);
format(coordsstring, sizeof(coordsstring), "[Admin Info] Int: %d | VW: %d | Warnings: %d | JailTime: %d | Tikis: %d | Skin: %d",intir,vw,warns,jtime,tikis,skin);
ShowPlayerDialog(playerid, 8374, DIALOG_STYLE_MSGBOX, "Administrator Principal", szShowString, "Ok","");
return 1;
}

