Stats Help
#7

Try it; it may be bugged though, not tested...
pawn Код:
CMD:stats(playerid, params[])
{
    new str[956], yes[2][50];
    if(pInfo[playerid][Logged] == 0) return SendClientMessage(playerid, COLOR_RED, "[Error]: You must be logged in to use this command!");
    GetPlayerIp(playerid, pInfo[playerid][Ip], 16);
    switch(pInfo[playerid][NoPM])
    {
        case 0: yes[0] = "Disable";
        case 1: yes[0] = "Enable";
    }
    switch(pInfo[playerid][PlayerTele])
    {
        case 0: yes[1] = "Disable";
        case 1: yes[1] = "Enable";
    }
    strcat(str, "{15D4ED}Player Name: %s\n", GetName(playerid));
    strcat(str, "Ip Address: %s\n", pInfo[playerid][Ip]);
    strcat(str, "Admin: %i\n", pInfo[playerid][Admin]);
    strcat(str, "VIP: %i\n", pInfo[playerid][VIP]);
    strcat(str, "Drugs: %i || Herione: %i || Cocaine: %i\n", pInfo[playerid][Drugs], pInfo[playerid][Heroine], pInfo[playerid][Cocaine]);
    strcat(str, "Money: $%i\n", GetPlayerMoney(playerid));
    strcat(str, "Score: %i\n", GetPlayerScore(playerid));
    strcat(str, "Cookies: %i\n", pInfo[playerid][Cookies]);
    strcat(str, "SkinID: %i\n", pInfo[playerid][SaveSkin]);
    strcat(str, "PM: %s\n", yes[0]);
    strcat(str, "Player Teleport: %s\n", yes[1]);
    strcat(str, "Bank Balance: $%i\n", pInfo[playerid][BankWealth]);
    strcat(str, "Kills: %i || Deaths: %i || Ratio: NaN\n", pInfo[playerid][Kills], pInfo[playerid][Deaths]);
    ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, ""white"Stats", str, "Close", "");
    SendAdminCMD(playerid, "stats");
    return 1;
Reply


Messages In This Thread
Stats Help - by TazmaNiax - 02.06.2014, 12:28
Re: Stats Help - by Scrillex - 02.06.2014, 12:30
Re: Stats Help - by TazmaNiax - 02.06.2014, 12:32
Re: Stats Help - by Rittik - 02.06.2014, 12:40
Re: Stats Help - by BroZeus - 02.06.2014, 12:44
Re: Stats Help - by TazmaNiax - 02.06.2014, 12:45
Re: Stats Help - by Parallex - 02.06.2014, 12:46
Re: Stats Help - by TazmaNiax - 02.06.2014, 12:58
Re: Stats Help - by BroZeus - 02.06.2014, 13:01
Re: Stats Help - by Parallex - 02.06.2014, 13:02

Forum Jump:


Users browsing this thread: 2 Guest(s)