/stats command
#10

Quote:
Originally Posted by Kostas'
Посмотреть сообщение
pawn Код:
//At The Top
#define COLOR_GREEN 0x00FF00FF

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/stats", cmdtext, true, 10) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            new statstring[128];
            SendClientMessage(playerid, COLOR_GREEN, "*** Your Stats ***");
            format(statstring, sizeof(statstring), "Kills: %d",PlayerInfo[playerid][pKills]);
            SendClientMessage(playerid, COLOR_GREEN, statstring);
            format(statstring, sizeof(statstring), "Deaths: %d",PlayerInfo[playerid][pDeaths]);
            SendClientMessage(playerid, COLOR_GREEN, statstring);
            format(statstring, sizeof(statstring), "Money: $%d",GetPlayerMoney(playerid));
            SendClientMessage(playerid, COLOR_GREEN, statstring);
        }
        return 1;
    }
    return 0;
}
that i want , thank You !
Reply


Messages In This Thread
/stats command - by Champ - 12.11.2011, 12:28
Re: /stats command - by Stigg - 12.11.2011, 12:36
Re: /stats command - by Champ - 12.11.2011, 13:11
Re: /stats command - by Stigg - 12.11.2011, 13:19
Re: /stats command - by Champ - 12.11.2011, 13:38
Re: /stats command - by Stigg - 12.11.2011, 13:43
Re: /stats command - by Champ - 12.11.2011, 13:47
Re: /stats command - by Stigg - 12.11.2011, 13:52
Re: /stats command - by Kostas' - 12.11.2011, 14:04
Re: /stats command - by Champ - 12.11.2011, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)