Need help
#3

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;
}
You can use it and if you don't want you can remove it.
Reply


Messages In This Thread
Need help - by JustinAn - 30.05.2012, 21:19
Re: Need help - by rVar - 30.05.2012, 21:23
Re: Need help - by FalconX - 30.05.2012, 21:35
Re: Need help - by Edward156 - 30.05.2012, 22:02

Forum Jump:


Users browsing this thread: 1 Guest(s)