30.05.2012, 21:35
pawn Код:
CMD:stats( playerid, params[ ] )
{
if( IsPlayerConnected( playerid ) )
{
new cash = PlayerInfo[ playerid ][ pCash ];
new level = GetPlayerScore( playerid );
new name[ MAX_PLAYER_NAME ], string[ MAX_PLAYER_NAME ];
SendClientMessage( playerid, COLOR_LIME, "_______________" );
GetPlayerName( playerid, name, sizeof( name ) );
format( string, sizeof( string ), "[Account]: Name: [%s] Level: [%i] Cash: %d",name, level, cash ); //use cash here as well.
SendClientMessage( playerid, COLOR_GRAD2, string );
}
return 1;
}