Code: Select all
if (strcmp(cmd, "/mutelist", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "Нет прав на использование команды !");
return 1;
}
SendClientMessage(playerid, COLOR_LIGHTRED, "Mute List:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMuted] > 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "ID: %d ** %s", i, sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}