status command
#2

If you mean /status that will show your stats, then

Example : ( only works for himself, doesnt work like " /status 5 " )
pawn Код:
CMD:status( playerid, params[ ] )
{
    new
        str[ 128 ];
    SendClientMessage( playerid, -1, "-----------------------------------------");
    SendClientMessage( playerid, -1, "Your stats :" );
    format( str, sizeof str, "Score: {33FF33}%d", GetPlayerScore( playerid ) );
    SendClientMessage( playerid, -1, str );
    format( str, sizeof str, "Money: {33FF33}$%d", GetPlayerMoney( playerid ) );
    SendClientMessage( playerid, -1, str );
    format( str, sizeof str, "Ping: {33FF33}%d", GetPlayerPing( playerid ) );
    SendClientMessage( playerid, -1, str );
    SendClientMessage( playerid, -1, "-----------------------------------------");
    return 1;
}
in dialogs
pawn Код:
CMD:status( playerid, params[ ] )
{
    new
        a_large_string[ 512 ];
    format( a_large_string, sizeof ( a_large_string ),
    "{FFFFFF}Score : {33FF33}%d \n\
    {FFFFFF}Money : {33FF33}$%d \n\
    {FFFFFF}Ping : {33FF33}%d"
, GetPlayerScore( playerid ), GetPlayerMoney( playerid ), GetPlayerPing( playerid ) );

    ShowPlayerDialog( playerid, 1337, DIALOG_STYLE_MSGBOX, "{FFFFFF}Your stats",
    a_large_string, "Okay", "" );

    return 1;
}
NOTE : Untested
Reply


Messages In This Thread
status command - by Goldino - 17.02.2013, 10:26
Re: status command - by greentarch - 17.02.2013, 10:35
Re: status command - by Goldino - 17.02.2013, 11:07
Re: status command - by Goldino - 17.02.2013, 11:17
Re: status command - by Goldino - 17.02.2013, 11:35
Re: status command - by greentarch - 17.02.2013, 11:45
Re: status command - by Goldino - 17.02.2013, 11:50
Re: status command - by greentarch - 17.02.2013, 11:55
Re: status command - by Goldino - 17.02.2013, 12:06
Re: status command - by greentarch - 17.02.2013, 12:08

Forum Jump:


Users browsing this thread: 3 Guest(s)