Hát én ezt így oldanám meg :
[pawn]forward SendAdminMessage(color,string[]);[/pawn]
[pawn]public SendAdminMessage(color, string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[adminlevel] > 0)
{
SendClientMessage(i, color, string);
}
}
}
return 1;
}[/pawn]
[pawn]public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
{
new Sztring[128];
new pName[MAX_PLAYER_NAME];
GetPlayerName (playerid, pName, sizeof(pName));
format(Sztring, 128, \"ADMINÜZENET (%s) [%s]\", cmdtext, pName);
SendClientMessage(playerid,-1, \"Nincs ilyen parancs!\");
SendAdminMessage(-1,Sztring);
}
return 1;
}[/pawn]