25.11.2012, 15:40
pawn Код:
CMD:stats( playerid, params[] )
{
new stts[ 1024 ], pName[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, pName, sizeof(pName));
// strcat( stats, "\t{FFFFFF}[ {FFAE00}%s {FFFFFF}Statistics: ]\n\n", pName);
format( stts, sizeof( stts ), "{FFFFFF}Admin Level: {FFAE00}%s\n", stts, P_DATA[ playerid ][ Admin ] );
format( stts, sizeof( stts ), "%s{FFFFFF}V.I.P Level: {FFAE00}%s\n", stts, P_DATA[ playerid ][ Vip ] );
format( stts, sizeof( stts ), "%s{FFFFFF}Score: {FFAE00}%s\n", stts, P_DATA[ playerid ][ Score ] );
format( stts, sizeof( stts ), "%s{FFFFFF}Cash: {FFAE00}%s\n", stts,P_DATA[ playerid ][ Cash ] );
format( stts, sizeof( stts ), "%s{FFFFFF}Coins: {FFAE00}%s\n", stts, P_DATA[ playerid ][ Coins ] );
format( stts, sizeof( stts ), "%s{FFFFFF}Reputation: {FFAE00}%s\n", stts, P_DATA[ playerid ][ Reputation ] );
format( stts, sizeof( stts ), "%s{FFFFFF}Kills: {FFAE00}%s\n", stts,P_DATA[ playerid ][ Kills ] );
format( stts, sizeof( stts ), "%s{FFFFFF}Deaths: {FFAE00}%s\n", stts,P_DATA[ playerid ][ Deaths ] );
SPD( playerid, statistics, DIALOG_STYLE_MSGBOX, "{FFAE00}P{FFFFFF}layer {FFAE00}S{FFFFFF}tats", stts, "Ok", "");