15.12.2015, 02:44
Here u go
PHP код:
CMD:stats(playerid,params[]) {
new coordsstring[1024],storage[128];
format(storage, sizeof(storage), "%s (%d)\n", GetName(targetid), targetid);
strcat(coordsstring,storage);
format(storage, sizeof(storage), "Level:[%d] Sex:[%s] Age:[%d] Cash:[$%s] Bank:[$%s] PhoneNr.:[%s]\n", level, sex, age, FormatNumber(cash), FormatNumber(account), PhoneFormat(phonenumber));
strcat(coordsstring,storage);
format(storage, sizeof(storage), "Premium Account:[%s] Next level:[$%s] Respect:[%d/%d] Hours played:[%d] Rob Points:[%d]\n", premiumaccount, FormatNumber(costlevel), respect, respectneed, hours, rob);
strcat(coordsstring,storage);
format(storage, sizeof(storage), "Crimes:[%d] Arrests:[%d] Wanted Deaths:[%d] Jailed:[%s] AJail:[%s] Muted:[%s]\n", crimes, arrests, wdeaths, jail, ajail, mute);
strcat(coordsstring,storage);
format(storage, sizeof(storage), "Wanted level:[%d] Kills:[%d] Deaths:[%d] Drugs:[%d] Materials:[%d] Coins:[%d] %s\n",wanted, kills, deaths, drugs, mats, coins, freepoints);
strcat(coordsstring,storage);
format(storage, sizeof(storage), "Job:[%s] Faction:[%s] Rank:[%s] FWarns:[%d/3] FPunish:[%d/20] Warns:[%d/3]\n", jtext, FactionName[faction], rtext, fwarns, punish, warns);
strcat(coordsstring,storage);
ShowPlayerDialog(playerid,999,DIALOG_STYLE_MSGBOX, "Statistics:",storage,"OK","");
return true;
}