[HELP] Color List
#4

This one should work properly, and does not require the use of any additional plugins/includes (even though the ones used in Retardedwolf's solution are very useful ):

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/blue", cmdtext, true, 5) == 0)
    {
        SendClientMessageToAll(0xDEEE20FF, "|_List of blue players_|");
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(GetPlayerColor(i) == 0x00137FAA) //0x00137FFAA = Blue color
            {
                new names[MAX_PLAYER_NAME], string[44];
                GetPlayerName(i, names, sizeof(names));
                format(string, sizeof(string), "%s(%d)",names ,playerid);
                SendClientMessage(playerid, 0x7F0037AA, string);
            }
        }
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
[HELP] Color List - by Larsey123IsMe - 15.12.2010, 19:01
Re: [HELP] Color List - by blackwave - 15.12.2010, 19:14
Re: [HELP] Color List - by Retardedwolf - 15.12.2010, 19:21
Re: [HELP] Color List - by Benjo - 15.12.2010, 19:26
Re: [HELP] Color List - by Larsey123IsMe - 15.12.2010, 19:29
Re: [HELP] Color List - by Retardedwolf - 15.12.2010, 19:31
Re: [HELP] Color List - by Benjo - 15.12.2010, 19:57
Re: [HELP] Color List - by The_Gangstas - 15.12.2010, 19:58
Re: [HELP] Color List - by Larsey123IsMe - 15.12.2010, 20:11
Re: [HELP] Color List - by Benjo - 15.12.2010, 20:17

Forum Jump:


Users browsing this thread: 1 Guest(s)