CMD:admins(playerid, params[]) { new string[128],sendername[25]; SendClientMessage(playerid, COLOR_REDFT, "[Admins Online]"); foreach(Player,i) { if(PlayerData[i][pAdminLevel] >= 1) { new param2[32]; switch(PlayerData[i][pAdminDuty]) { case 0: param2 = "Off Duty"; case 1: param2 = "On Duty"; default: param2 = "Off Duty"; } GetPlayerName(i, sendername, sizeof(sendername)); if(PlayerData[i][pAdminLevel] == 3) { format(string, 256, "(%d) Admin 3 %s - %s",i,sendername, param2); } else if(PlayerData[i][pAdminLevel] == 2) { format(string, 256, "(%d) Admin 2 %s - %s",i,sendername, param2); } else if(PlayerData[i][pAdminLevel] == 1) { format(string, 256, "(%d) Admin 1 %s - %s",i,sendername, param2); } SendClientMessage(playerid, COLOR_WHITE, string); } } return 1; }
CMD:admins(playerid, params[]) { new string[128],sendername[25]; SendClientMessage(playerid, COLOR_REDFT, "[Admins Online]"); foreach(Player,i) { if(PlayerData[i][pAdminLevel] >= 1) { GetPlayerName(i, sendername, sizeof(sendername)); if(PlayerData[i][pAdminLevel] == 3) { format(string, 256, "(%d) Admin 3 %s - %s",i,sendername); } else if(PlayerData[i][pAdminLevel] == 2) { format(string, 256, "(%d) Admin 2 %s - %s",i,sendername); } else if(PlayerData[i][pAdminLevel] == 1) { format(string, 256, "(%d) Admin 1 %s - %s",i,sendername); } SendClientMessage(playerid, COLOR_WHITE, string); } } return 1; }
CMD:admins(playerid,params[])
{
SendClientMessage(playerid, vert, "___________|- Online Admins -|___________");
new a;
foreach(new i : Player) // for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdminlvl] == 5)
{
a = a+1;
new name[MAX_PLAYER_NAME], str[MAX_PLAYER_NAME+120];
GetPlayerName(i, name, sizeof(name));
format(str, sizeof(str), "[Fondateur] » "blancU"%s", name);
SendClientMessage(playerid, red1, str);
}
else if(PlayerInfo[i][pAdminlvl] == 4)
{
a = a+1;
new name[MAX_PLAYER_NAME], str[MAX_PLAYER_NAME+120];
GetPlayerName(i, name, sizeof(name));
format(str, sizeof(str), mappeur"[Mappeur] » "blancU"%s", name);
SendClientMessage(playerid, X11_STEEL_BLUE_2, str);
}
else if(PlayerInfo[i][pAdminlvl] == 3)
{
new name[MAX_PLAYER_NAME], str[MAX_PLAYER_NAME+120];
GetPlayerName(i, name, sizeof(name));
format(str, sizeof(str), "[Admin] » "blancU"%s", name);
SendClientMessage(playerid, red, str);
a = a+1;
}
else if(PlayerInfo[i][pAdminlvl] > 0)
{
new name[MAX_PLAYER_NAME], str[MAX_PLAYER_NAME+120];
GetPlayerName(i, name, sizeof(name));
format(str, sizeof(str), modooPs"[Modo] » "blancU"%s", name);
SendClientMessage(playerid, -1, str);
a = a+1;
}
}
new str9[120];
format(str9, sizeof(str9), "There is actually %i connected admins.", a);
SendClientMessage(playerid, X11_LIGHT_YELLOW_3, str9);
SendClientMessage(playerid, vert, "|_____________________________________________________|");
return 1;
}
CMD:admins(playerid,params[])
{
SendClientMessage(playerid, vert, "___________|- Online Admins -|___________");
new a, str[MAX_PLAYER_NAME+90];
foreach(new i : Player) // for(new i=0; i<MAX_PLAYERS; i++)
{
switch(PlayerInfo[i][pAdminlvl])
{
case 5:
{
a++;
format(str, sizeof(str), "[Fondateur] » "blancU"%s", GetName(i));
SendClientMessage(playerid, red1, str);
}
case 4:
{
a++;
format(str, sizeof(str), mappeur"[Mappeur] » "blancU"%s", GetName(i));
SendClientMessage(playerid, X11_STEEL_BLUE_2, str);
}
case 3:
{
format(str, sizeof(str), "[Admin] » "blancU"%s", GetName(i));
SendClientMessage(playerid, red, str);
a++;
}
case 1,2:
{
format(str, sizeof(str), modooPs"[Modo] » "blancU"%s", GetName(i));
SendClientMessage(playerid, -1, str);
a++;
}
}
}
if(a==0) return SendClientMessage(playerid, red1, "There is no admin online");
format(str, sizeof(str), "There is actually %i connected admins.", a);
SendClientMessage(playerid, X11_LIGHT_YELLOW_3, str);
SendClientMessage(playerid, vert, "|_____________________________________________________|");
return 1;
}
CMD:admins(playerid,params[]) { #pragma unused params new count = 0; new string[128]; new AdmRank[128]; new AdmDuty[128]; new ChangeColor; SendClientMessage(playerid, green, " "); SendClientMessage(playerid, green, "___________ |- Online Admins -| ___________"); SendClientMessage(playerid, green, " "); for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if(PlayerInfo[i][Level] >= 1 && PlayerInfo[i][Hide] == 0) { if(IsPlayerAdmin(i)) { AdmRank = "RCON Administrator"; ChangeColor = Color_RCON_Administrator; } else { switch(PlayerInfo[i][Level]) { case 1: { AdmRank = "tueyitu"; } case 2: { AdmRank = "yuiuuo"; } case 3: { AdmRank = "truiuk"; } case 4: { AdmRank = "jfhk"; } case 5: { AdmRank = "htytjyuj"; } case 6: { AdmRank = "yj7ju"; } case 7: { AdmRank = "trjuyk"; } case 8: { AdmRank = "yt"; } case 9: { AdmRank = "trtyrt"; } } } switch(PlayerInfo[i][OnDuty]) { case 0: AdmDuty = "Off Duty!"; case 1: AdmDuty = "On Duty!"; } format(string, 128, "Level: %d - %s (Id:%i) | %s | %s",PlayerInfo[i][Level], PlayerName2(i),i,AdmRank,AdmDuty); SendClientMessage(playerid, ChangeColor, string); count++; } } } if (count == 0) SendClientMessage(playerid,red,"No admin online in the list"); SendClientMessage(playerid, green, " _______________________________________"); return 1; }
CMD:admins(playerid,params[])
{
#pragma unused params
new Count = 0;
new n[MAX_PLAYER_NAME];
new string[1000];
// SendClientMessage(playerid, 0x00FF00FF, "__________|Admins|__________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerInfo[i][Level] < 1) continue;
Count++;
}
SendClientMessage(playerid, green, "___________|- Online Admins -|___________");
if(Count != 0)
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if (PlayerInfo[i][Level] >= 1)
{
GetPlayerName(i,n,sizeof(n));
format(string, 1000, "%sLevel %d: {FF9900}%s {FFFF00}(ID: %d) - %s\n", string, PlayerInfo[i][Level], n, i, GetRankFromLevel(i));
SendClientMessage(playerid, red, string);
}
}
}
}
else SendClientMessage(playerid, red, "No admin online in the list");
SendClientMessage(playerid, green, "_________________________________________");
return 1;
}
CMD:admins(playerid, params[])
{
new count = 0,
string[128],
Name[MAX_PLAYER_NAME];
SendClientMessage(playerid, green, "___________ |- Online Admins -| ___________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
switch(PlayerInfo[i][Level])
{
case 1:
{
Rank = "Level 1";
}
case 2:
{
Rank = "Level 2";
}
case 3:
{
Rank = "Level 3";
}
case 4:
{
Rank = "Level 4";
}
case 5:
{
Rank = "Level 5";
}
}
}
GetPlayerName(i, Name, sizeof(Name));
format(string, 128, "Level %d: {FF9900}%s {FFFF00}(ID: %d) - %s",PlayerInfo[i][Level], Name, i, Rank);
SendClientMessage(playerid, red, string);
Count++;
}
if(Count == 0)
{
SendClientMessage(playerid, green, "___________|- Online Admins -|___________");
SendClientMessage(playerid, red, "No admin online in the list");
SendClientMessage(playerid, green, "_________________________________________");
}
return 1;
}
CMD:admins(playerid, params[]) { SendClientMessage(playerid, -1, "| Staff |"); for(new i = 0; i < MAX_PLAYERS; i++){ if(IsPlayerConnected(i)){ if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 10){ new string[128],admtext[24]; switch(PlayerInfo[i][pAdmin]){ case 1: admtext = "Helper"; case 3: admtext = "Moderator"; case 5: admtext = "Administration"; case 6: admtext = "Manager"; case 7: admtext = "Boss"; case 10: admtext = "Owner"; } format(string, sizeof(string)," %s - %s", admtext, GetPlayerNameEx(i)); SendClientMessage(playerid, 0xC0C0C0FF, string); } } } return 1; } |