pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(stats, 5, cmdtext);
if(strcmp("/factions", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0x00FF00AA, "{66FF66}|FACTIONS|{00FF00} 0)Civ 1)LSPD | 2)Army 3)EMS 4)Swat | 5)SS | 6) Gov | 7)Hit");
return 1;
}
return 0;
}
dcmd_stats(playerid,params[])
{
#pragma unused params
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "|Account| Name: %s | Kills: %d | Deaths: %d | Cash: %d", name, PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths], GetPlayerMoney(playerid));
SendClientMessage(playerid, COLOR_GREEN, string);
return 1;
}