how to show all players in one and multi lines ?
#3

pawn Код:
dcmd_players(playerid,params[])
{
    #pragma unused params
    new string[75], count = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && !IsPlayerNPC(i))
        {
            if(count != 2) format(string, sizeof(string), "%s%s,", string, PlayerName(i),i);
            else format(string, sizeof(string), "%s%s", string, PlayerName(i),i);
            count++;
        }
        if(count == 3)
        {
            SendClientMessage(playerid, 0xFFF84FFFF, string);
            count = 0;
        }
    }
    return 1;
}
Reply


Messages In This Thread
how to show all players in one and multi lines ? - by omidi - 02.10.2013, 16:47
Re: how to show all players in one and multi lines ? - by Sliceofdeath - 02.10.2013, 16:50
Re: how to show all players in one and multi lines ? - by Konstantinos - 02.10.2013, 16:59

Forum Jump:


Users browsing this thread: 2 Guest(s)