04.04.2013, 14:19
pawn Код:
public ShowStatsForPlayer(playerid, targetid)
{
new str[128];
SendClientMessage(targetid, GREEN, "------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------");
format(str, 128, "Name: %s | IP: %s | Gender: %s | Age: %d | In Prison For: %s | Interior: %d | Virtual World: %d.", GetICName(playerid), PlayerStat[playerid][LastIP], GetGender(playerid), PlayerStat[playerid][Age], PlayerStat[playerid][Reason], GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid));
SendClientMessage(targetid, GREY, str);
format(str, 128, "Helper Level: %d | Admin Level: %d | Times Kicked: %d | Times Banned: %d | Warnings: %d (/warnings for more info).", PlayerStat[playerid][HelperLevel], PlayerStat[playerid][AdminLevel], PlayerStat[playerid][TimesKicked], PlayerStat[playerid][TimesBanned], PlayerStat[playerid][Warnings]);
SendClientMessage(targetid, GREY, str);
format(str, 128, "Money $%d | Locker Money: $%d | Next Paycheck: $%d | Current Job: %s | Hours Passed in Job: %d.", PlayerStat[playerid][Money], PlayerStat[playerid][LockerMoney], PlayerStat[playerid][Paycheck], GetJob(playerid), PlayerStat[playerid][HoursInJob]);
SendClientMessage(targetid, GREY, str);
format(str, 128, "Playing Hours: %d | Gang: %s (ID: %d) | Gang Rank: %s (%d) | Faction: %s | Faction Rank: %s.", PlayerStat[playerid][PlayingHours], GetGangName(playerid), PlayerStat[playerid][GangID], GetGangRank(playerid), PlayerStat[playerid][GangRank], GetFactionName(playerid), GetFactionRank(playerid));
SendClientMessage(targetid, GREY, str);
format(str, 128, "Seconds logged in: %d | Pot: %d | Crack: %d | Kills: %d | Deaths: %d | Health: %f | Armour: %f.", PlayerStat[playerid][SecondsLoggedIn], PlayerStat[playerid][Pot], PlayerStat[playerid][Crack], PlayerStat[playerid][Kills], PlayerStat[playerid][Deaths], PlayerStat[playerid][Health], PlayerStat[playerid][Armour]);
SendClientMessage(targetid, GREY, str);
SendClientMessage(targetid, GREEN, "------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------");