how do i list all players in a dialog.
#4

This is how to show it in chat, you can just convert it to dialog:
ALSO USING ZCMD
pawn Код:
CMD:onlineplayers( playerid, params[ ] )
{
    new count = 0;
    for( new i; i < MAX_PLAYERS; 1++ )
    {
        if( IsPlayerConnected( i ) )
        {
            count++;
            new string[ 128 ];
            new pName[ 24 ];
            GetPlayerName( i, pName, 24 );
            format( string, sizeof string, "[%d.] %s", count, pName );
            SendClientMessage( playerid, 0xAAAAAA, string );
        }
    }
    return 1;
}
Too lazy to write a code for dialog now...
Reply


Messages In This Thread
how do i list all players in a dialog. - by THE_KNOWN - 10.02.2011, 03:06
Re: how do i list all players in a dialog. - by (SF)Noobanatior - 10.02.2011, 03:27
Re: how do i list all players in a dialog. - by THE_KNOWN - 10.02.2011, 03:34
Re: how do i list all players in a dialog. - by Mean - 10.02.2011, 12:35

Forum Jump:


Users browsing this thread: 1 Guest(s)