status command
#9

Quote:
Originally Posted by greentarch
Посмотреть сообщение
Sure :
pawn Код:
CMD:status( playerid, params[ ] )
{
    new
        str[ 1024 ]; // Yes, I know. This one is a big string size.

    format( str, sizeof ( str ),
    "{FFFFFF}Admin Level : {33FF33}%d \n\
    {FFFFFF}VIP Level : {33FF33}%d \n\
    {FFFFFF}Money : {33FF33}$%d \n\
    {FFFFFF}Score : {33FF33}%d \n\
    {FFFFFF}Kills : {33FF33}%d \n\
    {FFFFFF}Deaths : {33FF33}%d"
,
    pInfo[ playerid ][ Adminlevel ], pInfo[ playerid ][ VIPlevel ], GetPlayerMoney( playerid ), GetPlayerScore( playerid ), pInfo[ playerid ][ Kills ], pInfo[ playerid ][ Deaths ] );

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

    return 1;
}
EDIT: Messed up the script 2 times, now fixed.

For the question above, check your OnPlayerDeath, it should be something like
pawn Код:
public OnPlayerDeath( playerid, killerid, reason )
{
    pInfo[ killerid ][ Kills ] ++;
    pInfo[ playerid ][ Deaths ] ++;
    return 1;
}
Correct, how do I fix it?
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: 4 Guest(s)