11.06.2010, 23:06
Works only in FS
pawn Код:
public OnRconCommand(cmd[])
{
if(!strcmp(cmd,"admins",true,6)) {
new Nick[24],bool:Online;
print("Admins OnLine:");
for(new i,g=GetMaxPlayers(); i < g; i++) if(IsPlayerConnected(i) && IsPlayerAdmin(i))
{
GetPlayerName(i,Nick,24);
printf("%s (ID: %d)",Nick,i);
Online=true;
}
if(!Online) print("* No Admins OnLine");
return 1;
}
return 0;
}