25.11.2012, 15:34
pawn Код:
CMD:stats( playerid, params[] )
{
new stts[ 5000 ], 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", P_DATA[ playerid ][ Admin ] );
format( stts, sizeof( stts ), "{FFFFFF}V.I.P Level: {FFAE00}%s\n", P_DATA[ playerid ][ Vip ] );
format( stts, sizeof( stts ), "{FFFFFF}Score: {FFAE00}%s\n", P_DATA[ playerid ][ Score ] );
format( stts, sizeof( stts ), "{FFFFFF}Cash: {FFAE00}%s\n", P_DATA[ playerid ][ Cash ] );
format( stts, sizeof( stts ), "{FFFFFF}Coins: {FFAE00}%s\n", P_DATA[ playerid ][ Coins ] );
format( stts, sizeof( stts ), "{FFFFFF}Reputation: {FFAE00}%s\n", P_DATA[ playerid ][ Reputation ] );
format( stts, sizeof( stts ), "{FFFFFF}Kills: {FFAE00}%s\n", P_DATA[ playerid ][ Kills ] );
format( stts, sizeof( stts ), "{FFFFFF}Deaths: {FFAE00}%s\n", P_DATA[ playerid ][ Deaths ] );
SPD( playerid, statistics, MSGBOX, "{FFAE00}P{FFFFFF}layer {FFAE00}S{FFFFFF}tats", stts, "Ok", "" );
return ( 1 );
}