Admins dialog
#1

plase this to admins dialog.

Quote:

dcmd_admins(playerid, params[])
{
#pragma unused params

TestPrint("dcmd_admins(playerid, params[])");

if(AdminsOnline() == 0) return MLMSvitz(playerid, "[ ! ] 0 Admins Olnine", "[ ! ] 0 Admins Olnine");



new string[60];

for(new i=0;i<=MAX_PLAYERS_EX;i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i) && Informace[i][AdminLevel] == 0)
{
format(string, 60, "[ On-line ] %s | [ RCON ]",Jmeno(i));
SystemMessage(playerid,string);
}
else if(Informace[i][AdminLevel] > 0 && !IsPlayerAdmin(i))
{
format(string, 60, "[ On-line ] %s | [ LVL %d ]",Jmeno(i),Informace[i][AdminLevel]);
SystemMessage(playerid,string);
}
else if(IsPlayerAdmin(i) && Informace[i][AdminLevel] > 0)
{
format(string, 60, "[ On-line ] %s | [ LVL %d + RCON ]",Jmeno(i),Informace[i][AdminLevel]);
SystemMessage(playerid,string);
}
}
}
return true;
}

Reply
#2

This isn't a request-section, try doing it yourself with ShowPlayerDialog and strcat, then we can help you with any problems.
And why are you using dcmd? There's much better command processors like zcmd or y_commands.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)