13.02.2015, 10:03
please how to convert admins dialog:
dcmd_admins(playerid, params[])
{
#pragma unused params
new string[128];
SendClientMessage(playerid,COLOR_GREEN,"********** *******[{FF0000}Online Admins{33AA33}]***************");
for(new i = 0;i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i) && Admin[i] == 0)
{
format(string, 60, " RCON [ %d ] %s",i,Jmeno(i));
SendClientMessage(playerid,0x77FF00FF,string);
noadmins ++;
}else
if(Admin[i] > 0 && !IsPlayerAdmin(i))
{
format(string, 60, "Level %d [ %d ] %s",Admin[i],i,Jmeno(i));
SendClientMessage(playerid,0x77FF00FF,string);
noadmins ++;
}
else
if(IsPlayerAdmin(i) && Admin[i] > 0)
{
format(string, 60, "Level %d + RCON [ %d ] %s",Admin[i],i,Jmeno(i));
SendClientMessage(playerid,0x77FF00FF,string);
noadmins ++;
}
}
}
if(noadmins == 0)
{
format(string, 60, "Not Online Admins");
SendClientMessage(playerid,COLOR_RED,string);
}
SendClientMessage(playerid,COLOR_GREEN,"********** ******************************************");
noadmins = 0;
return 1;
}
dcmd_admins(playerid, params[])
{
#pragma unused params
new string[128];
SendClientMessage(playerid,COLOR_GREEN,"********** *******[{FF0000}Online Admins{33AA33}]***************");
for(new i = 0;i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i) && Admin[i] == 0)
{
format(string, 60, " RCON [ %d ] %s",i,Jmeno(i));
SendClientMessage(playerid,0x77FF00FF,string);
noadmins ++;
}else
if(Admin[i] > 0 && !IsPlayerAdmin(i))
{
format(string, 60, "Level %d [ %d ] %s",Admin[i],i,Jmeno(i));
SendClientMessage(playerid,0x77FF00FF,string);
noadmins ++;
}
else
if(IsPlayerAdmin(i) && Admin[i] > 0)
{
format(string, 60, "Level %d + RCON [ %d ] %s",Admin[i],i,Jmeno(i));
SendClientMessage(playerid,0x77FF00FF,string);
noadmins ++;
}
}
}
if(noadmins == 0)
{
format(string, 60, "Not Online Admins");
SendClientMessage(playerid,COLOR_RED,string);
}
SendClientMessage(playerid,COLOR_GREEN,"********** ******************************************");
noadmins = 0;
return 1;
}