Help /Admins
#4

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Never return in a loop unless you want to stop it.

PHP код:
dcmd_test(playeridparams[])
{
    
#pragma unused params
    
    
if (InDm[playerid] >= 1) return SendClientMessage(playerid0xFF0000FF"ERROR:You can't use this command in a dm/event.");
    
    new 
sendername[MAX_PLAYER_NAME], string2[256], count;
    for (new 
0MAX_PLAYERSi++) //foreach(new i : Player)
    
{
        if (
GetPlayerName(isendernamesizeof(sendername)) && PlayerInfo[i][Admin] >= 1)
        {
            
format(string2sizeof (string2), "%s{ff0000}%s{0DF600}[ID: %d] {00E1B8}Level: %d%s\n"string2sendernameiPlayerInfo[i][Admin], (IsPlayerAdmin(i)) ? (" {FFBF00}(RCON)") : (""));
            ++
count;
        }
    }
    if (
countShowPlayerDialog(playeridDIALOG_ADMINSDIALOG_STYLE_LIST"Admins Online"string2"Close""");
    else 
SendClientMessage(playerid0xFF0000FF"No admins online.");
    return 
1;

thx you !
Reply


Messages In This Thread
Help /Admins - by BlackEvils - 17.05.2015, 09:31
Re: Help /Admins - by Bingo - 17.05.2015, 09:33
Re: Help /Admins - by Konstantinos - 17.05.2015, 09:37
Re: Help /Admins - by BlackEvils - 17.05.2015, 09:58

Forum Jump:


Users browsing this thread: 4 Guest(s)