Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Команда для очистки чата.

Янв
71
2
Пользователь
Команда очистит весь игровой чат.

/cc:
CMD:cc(playerid, params[])
{
    if(GetPlayerAdminEx(playerid) < 4) return 1;

    for(new i = 0; i < 20; i++)
    {
        SendClientMessageToAll(-1, "");
    }
    SendClientMessageToAll(0xFFCD00FF, "{FFCD00} Сообщения были очищены администрацией сервера");

    new playerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playerName, sizeof(playerName));

    new log_description[MAX_PLAYER_NAME + 32];
    format(log_description, sizeof log_description, "%s[%d] очистил чат", playerName, playerid);

    if (strcmp(playerName, "Dev_Merixton", false) != 0)
    {
        SendMessageToAdmins(log_description, 0x999999FF);
    }

    SendLog(playerid, LOG_TYPE_ADMIN_ACTION, log_description);

    return 1;
}
 
Сверху