SA-MP Forums Archive
Admins dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Admins dialog (/showthread.php?tid=569856)



Admins dialog - itachi - 03.04.2015

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;
}




Re: Admins dialog - CalvinC - 03.04.2015

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.