status command
#6

What does not work? Can you be a little bit clearer?

pawn Код:
CMD:status( playerid, params[ ] )
{
    new
        str[ 128 ];
    SendClientMessage( playerid, -1, "---------------------------------------" );
    SendClientMessage( playerid, -1, "Your stats :" );
    format( str, sizeof ( str ), "Admin Level : {33FF33}%d", pInfo[ playerid ][ Adminlevel ] );
    SendClientMessage( playerid, -1, str );
    format( str, sizeof ( str ), "VIP Level : {33FF33}%d", pInfo[ playerid ][ VIPlevel ] );
    SendClientMessage( playerid, -1, str );
    format( str, sizeof ( str ), "Money : {33FF33}$%d", GetPlayerMoney( playerid ) );
    SendClientMessage( playerid, -1, str );
    format( str, sizeof ( str ), "Score : {33FF33}%d", GetPlayerScore( playerid ) );
    SendClientMessage( playerid, -1, str );
    format( str, sizeof ( str ), "Kills : {33FF33}%d", pInfo[ playerid ][ Kills ] );
    SendClientMessage( playerid, -1, str );
    format( str, sizeof ( str ), "Deaths : {33FF33}%d", pInfo[ playerid ][ Deaths ] );
    SendClientMessage( playerid -1, str );
    SendClientMessage( playerid, -1, "---------------------------------------" );
    return 1;
}
I have tested the code above at my server.
Type /status ingame.
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: 2 Guest(s)