26.06.2015, 09:49
I use this:
PHP код:
COMMAND:admin(playerid,params[])
{
new id[MAX_PLAYER_NAME], string[128];
SendClientMessage(playerid, 0xFFAE00FF, " ");
SendClientMessage(playerid, 0xFFAE00FF, "----' Online Admins '----");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] > 0)
{
switch(PlayerInfo[i][pAdmin])
{
case 1: AdmRank = "Trial Moderator";
case 2: AdmRank = "Moderator";
case 3: AdmRank = "Master Moderator";
case 4: AdmRank = "Trial Administrator";
case 5: AdmRank = "Administrator";
case 6: AdmRank = "Master Administrator";
case 7: AdmRank = "Trusted Administrator";
case 8: AdmRank = "Head Administrator";
case 9: AdmRank = "Co-Owner";
case 10: AdmRank = "Owner";
}
GetPlayerName(i, id, sizeof(id));
format(string, sizeof(string), "%s (%d) ({FF0000}%s{00FF00})", id, i, AdmRank);
SendClientMessage(playerid, 0x00FF00FF, string);
}
else if(!IsPlayerConnected(i) && PlayerInfo[i][pAdmin] <= 0)
{
SendClientMessage(playerid, 0xFFAE00FF, "There Are No Admins Online");
}
}
}
return 1;
}