TopRich
#10

Quote:
Originally Posted by Barnwell
Посмотреть сообщение
If you can't
i make one for you

pawn Код:
CMD:richlist(playerid, params[])//509
{
    if(IsPlayerConnected(playerid))
    {
        SCM(playerid, COLOR_GRAD3, "Rich Users online:");
        new string[128];
        foreach(Player, i)
        {
            if(IsPlayerConnected(i))
            {
                if(GetPlayerCash(i) >= 100000 || PlayerInfo[i][pAccount] >= 100000)
                {
                    format(string, sizeof(string), "%s (%d) - In Hand: $%d | In Bank: $%d", GPN(i), i, GetPlayerCash(i), PlayerInfo[i][pAccount]);
                    SCM(playerid, COLOR_GRAD1, string);
                }
            }
        }
    }
    return 1;
}
Код:
if(IsPlayerConnected(playerid))
Lol what is the need of checking that the the "player" is connected or not
Reply


Messages In This Thread
TopRich - by Loinal - 04.04.2016, 20:34
Re: TopRich - by Golden96 - 04.04.2016, 20:42
Re: TopRich - by Barnwell - 04.04.2016, 22:30
Re: TopRich - by Barnwell - 04.04.2016, 22:32
Re: TopRich - by Sew_Sumi - 05.04.2016, 03:24
Re: TopRich - by Barnwell - 05.04.2016, 14:03
Re: TopRich - by Sew_Sumi - 05.04.2016, 15:53
Re: TopRich - by SyS - 05.04.2016, 15:55
Re: TopRich - by OmegaKiller72 - 05.04.2016, 16:16
Re: TopRich - by K0P - 05.04.2016, 16:32

Forum Jump:


Users browsing this thread: 2 Guest(s)