17.07.2011, 20:02
PHP код:
stock ShowStats(playerid)
{
#define size_string (128)
new string[size_string];
SendClientMessage(playerid, -1,""White"===================================================================================");
format(string, size_string, "\t"Red"Name: "White"%s ", pName(playerid));
SendClientMessage(playerid, -1, string);
format(string, size_string, "\t"Red"ID: "White"%d", playerid); //524
SendClientMessage(playerid, -1, string);
format(string, size_string, "\t"Red"Admin Level: "White"%d", GetAdminLevel(playerid));
SendClientMessage(playerid, -1, string);
format(string, size_string, "\t"Red"Rank: "White"%s", GetRank(playerid));
SendClientMessage(playerid, -1, string);
format(string, size_string, "\t"Red"VIP: "White"%s", IsVIP(playerid));
SendClientMessage(playerid, -1, string);
format(string, size_string, "\t"Red"KMA: "White"%s", IsKMA(playerid));
SendClientMessage(playerid, -1, string);
format(string, size_string, "\t"Red"Score: "White"%d", PlayerInfo[playerid][pScore]);
SendClientMessage(playerid, -1, string);
format(string, size_string, "\t"Red"Money: "White"%d$", PlayerInfo[playerid][pMoney]);
SendClientMessage(playerid, -1, string);
format(string, size_string, "\t"Red"Kills: "White"%d", PlayerInfo[playerid][pKills]);
SendClientMessage(playerid, -1, string);
format(string, size_string, "\t"Red"Deaths: "White"%d", PlayerInfo[playerid][pDeaths]);
SendClientMessage(playerid, -1, string);
format(string, size_string, "\t"Red"Muted: "White"%s", IsMuted(playerid));
SendClientMessage(playerid, -1, string);
format(string, size_string, "\t"Red"Jailed: "White"%s", IsJailed(playerid));
SendClientMessage(playerid, -1, string);
format(string, size_string, "\t"Red"Frozen: "White"%s", IsFrozen(playerid));
SendClientMessage(playerid, -1, string);
format(string, size_string, "\t"Red"Times muted: "White"%d", PlayerInfo[playerid][pMutedTimes]);
SendClientMessage(playerid, -1, string);
format(string, size_string, "\t"Red"Times jailed: "White"%d", PlayerInfo[playerid][pJailedTimes]);
SendClientMessage(playerid, -1, string);
format(string, size_string, "\t"Red"Times frozen: "White"%d", PlayerInfo[playerid][pFrozenTimes]);
SendClientMessage(playerid, -1, string);
format(string, size_string, "\t"Red"Loggins: "White"%d", PlayerInfo[playerid][pLoggins]);
SendClientMessage(playerid, -1, string);
SendClientMessage(playerid, -1,""White"===================================================================================");
#undef size_string
return 1;
}