26.01.2013, 20:07
pawn Код:
CMD:admins(playerid, params[])
{
if(playercount >= 1)
{
new str[128], count = 0;
SendClientMessage(playerid, GREEN, "||| Admins Online |||"); // change colors
for(new i; i<=playercount; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i))
{
format(str, sizeof(str), "%s[%d]", Name3(i), i);
SendClientMessage(playerid, YELLOW, str); // this too
count++;
}
}
}
if(count == 0) return SendClientMessage(playerid, RED, "No admins online"); // maybe this too?
}
return 1;
}