08.03.2010, 22:07
Try this code, just edit it to use your admin name's such as trail, lead admin ect..
Works fine for me.
Works fine for me.
pawn Код:
dcmd_admins(playerid, params[])
{
#pragma unused params
str[0] = 0;
for (new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if (pInfo[i][Admin] > 0)
{
if( str[0] == 0 )
SendClientMessage( playerid, COLOR_YELLOW, "Current Admins Online:" );
format(str, sizeof(str), "%s - (Level %d)", PlayerName(i), pInfo[i][Admin]);
SendClientMessage(playerid, COLOR_WHITE, str);
}
}
}
if(str[0] == 0)
SendClientMessage(playerid, COLOR_GREY, "Currently No Admins Online.");
return 1;
}