27.10.2012, 14:36
Here:
PHP код:
if (strcmp("/stats", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid, 0xFFFFFFFF, " |- - - - - - - - - - - - - - - - - - - |");
new string[128];
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname,sizeof(aname));
format(string,sizeof(string), "%s These are your stats:", aname);
SendClientMessage(playerid, 0xFFFFFFFF,string);
format(string,sizeof(string), "- Cash: %i", GetPlayerMoney(playerid));
SendClientMessage(playerid, 0xFFFFFFFF, string);
format(string,sizeof(string), "- Kills: %i", PlayerInfo[playerid][pKills]);
SendClientMessage(playerid, 0xFFFFFFFF, string);
format(string,sizeof(string), "- Deaths: %i", PlayerInfo[playerid][pDeaths]);
SendClientMessage(playerid, 0xFFFFFFFF, string);
format(string,sizeof(string), "- Admin Level: %i", PlayerInfo[playerid][pAdmin]);
SendClientMessage(playerid, 0xFFFFFFFF, string);
SendClientMessage(playerid, 0xFFFFFFFF, " |- - - - - - - - - - - - - - - - - - - |");
return 1;
}