if (strcmp(cmd, \"/adminok\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new nev[32];
GetPlayerName(playerid, nev, sizeof(nev));
new h,mi,s,y,m,d;
getdate(y,m,d);
gettime(h,mi,s);
format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s beírta a /adminok parancsot\",y,m,d,h,mi,s,nev);
LoOoG(stringx);
SendClientMessage(playerid, COLOR_WHITE, \"\");
SendClientMessage(playerid, COLOR_WHITE, \"Elérhetõ Adminok:\");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new admtext[64];
if(PlayerInfo[pAdmin] == 6) { admtext = \"{ff0000}Adminisztrátor(Tulaj)\"; }
else
{
if(Admin(i, 1) && PlayerInfo[pAdmin] <= 4 && PlayerInfo[rejtozes] == 0)
{
new admtext[64];
if(PlayerInfo[pAdmin] == 4) { admtext = \"{1e4ce6}Globális Moderátor\"; }
else if(PlayerInfo[pAdmin] == 3) { admtext = \"{a1c437}Moderátor\"; }
else if(PlayerInfo[pAdmin] == 2) { admtext = \"{c48237}Felügyelõ\"; }
else if(PlayerInfo[pAdmin] == 1) { admtext = \"{c48237}Felügyelõ\"; }
else { admtext = \"-\"; }
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty == 0)
{
format(string, 256, \"%s ( %s )\", sendername, admtext);
SendClientMessage(playerid, COLOR_YELLOW2, string);
}
else
{
format(string, 256, \"%s ( %s )\", sendername, admtext);
SendClientMessage(playerid, COLOR_YELLOW2, string);
}
}
}
}
}
SendClientMessage(playerid, COLOR_WHITE, \"Elérhetõ Adminsegédek:\");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[pHelper] >= 1 || PlayerInfo[orokas] >= 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty == 0)
{
format(string, 256, \"%s\", sendername);
SendClientMessage(playerid, COLOR_YELLOW2, string);
}
else
{
format(string, 256, \"%s\", sendername);
SendClientMessage(playerid, COLOR_YELLOW2, string);
}
}
}
}
SendClientMessage(playerid, COLOR_WHITE, \"\");
}
return 1;
}
if(strcmp(nev, \"Fazakas_Szabolcs\", true) == 0)
if (strcmp(cmd, \"/adminok\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new nev[32];
GetPlayerName(playerid, nev, sizeof(nev));
new h,mi,s,y,m,d;
getdate(y,m,d);
gettime(h,mi,s);
format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s beírta a /adminok parancsot\",y,m,d,h,mi,s,nev);
LoOoG(stringx);
SendClientMessage(playerid, COLOR_WHITE, \"\");
SendClientMessage(playerid, COLOR_WHITE, \"Elérhetõ Adminok:\");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerName(i, nev, sizeof(nev));
if(strcmp(nev, \"Wasd_Man\", true) == 0 || strcmp(nev, \"Asd_Ask\", true) == 0)
{
}
else
{
if(Admin(i, 1) && PlayerInfo[pAdmin] <= 5 && PlayerInfo[rejtozes] == 0)
{
new admtext[64];
if (PlayerInfo[pAdmin] == 5) { admtext = \"Tulaj/Scripter\"; }
else if(PlayerInfo[pAdmin] == 4) { admtext = \"Tulaj/Mapper\"; }
else if(PlayerInfo[pAdmin] == 3) { admtext = \"3* Fõadmin\"; }
else if(PlayerInfo[pAdmin] == 2) { admtext = \"2*\"; }
else if(PlayerInfo[pAdmin] == 1) { admtext = \"1*\"; }
else { admtext = \"-\"; }
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty == 0)
{
format(string, 256, \"%s ( %s )\", sendername, admtext);
SendClientMessage(playerid, COLOR_YELLOW2, string);
}
else
{
format(string, 256, \"%s ( %s )\", sendername, admtext);
SendClientMessage(playerid, COLOR_YELLOW2, string);
}
}
}
}
}
SendClientMessage(playerid, COLOR_WHITE, \"Elérhetõ Adminsegédek:\");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[pHelper] >= 1 || PlayerInfo[orokas] >= 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty == 0)
{
format(string, 256, \"%s\", sendername);
SendClientMessage(playerid, COLOR_YELLOW2, string);
}
else
{
format(string, 256, \"%s\", sendername);
SendClientMessage(playerid, COLOR_YELLOW2, string);
}
}
}
}
SendClientMessage(playerid, COLOR_WHITE, \"\");
}
return 1;
}