28.08.2010, 09:37
pawn Код:
dcmd_admins(playerid,params[])
{
#pragma unused params
if(IsPlayerConnected(playerid))
{
new AdminGuy[MAX_PLAYER_NAME];
new string[50 + MAX_PLAYER_NAME];
SendClientMessage(playerid, COLOR_WHITE, "Current Online Admins:");
SendClientMessage(playerid, COLOR_WHITE, "__________________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
new lvl = pInfo[i][adminlevel];
if(lvl > 0)
{
GetPlayerName(i, AdminGuy, sizeof(AdminGuy));
format(string, sizeof(string), "Name: %s - Admin Level: %d", AdminGuy, lvl);
SendClientMessage(playerid, COLOR_BLUE, string);
}
}
SendClientMessage(playerid, COLOR_WHITE, "___________________");
}
return 1;
}