08.07.2010, 22:41
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
{
new Pname[24];
SendClientMessage(playerid, COLOR_RED, " ** Admins Online: **");
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerName(i, Pname, 24);
if(!strcmp(Pname, "Luco_Corleone", true)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "|*| Owner: Luco_Corleone |*|");
continue;
}
if(!strcmp(Pname, "Anderson_Matthews", true)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "|*| Co-Owner: Anderson_Matthews |*|");
continue;
}
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1)
{
GetPlayerName(i, Pname, sizeof(Pname));
format(string, 256, "|*| Admin: %s |*|", Pname);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
return 1;
}