29.03.2011, 21:14
pawn Код:
if(commands == 1 && PlayerInfo[playerid][AdminLevel] <= 2)
{
for(new i = 0; i < MAX_PLAYERS; i++)
if(PlayerInfo[i][AdminLevel] >= 3)
{
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "[%s]: %s (id:%d)", name, cmdtext[0], playerid);
SendClientMessage(/*playerid*/ i, COLOUR_GREY, string); // you want to send it to i, not to playerid
}
}