Иконка ресурса

Voice protection 0.3

Нет прав для скачивания
Сообщения
264
Реакции
79
Помог
1 раз(а)
Жаль что под revoice, не совместим плагин.
 
Сообщения
105
Реакции
40
Помог
1 раз(а)
В ревоис есть api вроде как, можно реализовать при желании
 
Сообщения
258
Реакции
262
Помог
5 раз(а)
  • Нравится
Реакции: REVO
Сообщения
226
Реакции
143
Помог
4 раз(а)
Добавьте возможность блокировки микрофона и чата на N секунд после смерти.
 
Сообщения
1,539
Реакции
2,318
Помог
39 раз(а)
SonG, все таки это уже лишнее. Лучше подобный функционал выводить через плагин,который будет дополнять базовый квар общения.
 
Сообщения
263
Реакции
335
Помог
4 раз(а)
Tranquillity, Ну тогда если речь о звуке, то в Revoice)))
 
Сообщения
264
Реакции
79
Помог
1 раз(а)
Доброй ночи! Сделал цветной чат, но вот иногда он бывает вовсе белый!
Подскажите что не так сделано?
Код:
client_print_color(id, print_chat, "%L %L", id, "VP_TO_BEGIN", id, "VP_NEED_YET", MIN_FRAGS - g_Frags[id]);
Или надо вот так?
Код:
client_print_color(id, print_team_default, "%L %L", id, "VP_TO_BEGIN", id, "VP_NEED_YET", MIN_FRAGS - g_Frags[id]);
Как вообще правильно должно быть?
 

d3m37r4

111111
Сообщения
1,420
Реакции
1,162
Помог
10 раз(а)
REVO, второй аргумент в client_print_color отвечает за цвет, в него можно вписывать id игрока, для передачи цвета его команды, тогда при использовании ^3 в сообщении, оно будет окрашено в цвет команды игрока, ид которого во втором аргументе. Подробнее смотри спойлеры:
Код:
/**
 * Sends colored chat messages to clients.
 *
 * @note This only works in Counter-Strike 1.6 and Condition Zero.
 * @note The colors can be modified inside of the format string using special
 *       characters. These characters can be included using the escape character
 *          green           x04   ; use location color from this point forward
 *          red/blue/grey   x03   ; use team color from this point forward
 *          red/blue/grey   x02   ; use team color to the end of the client name
 *                                ; This only works at the start of the string,
 *                                ; and precludes using other control characters
 *          default         x01   ; use default color from this point forward
 * @note The team color is defined by the sender's index. Alternatively, a
 *       specific team color can be enforced using the print_team_* constants in
 *       amxconst.inc
 * @note Usage examples:
 *       client_print_color(id, print_team_red, "^4Green ^3Red ^1Default")
 *       client_print_color(id, id2, "^4Green ^3id2's team color, ^1Default")
 * @note Including colors in ML can be done using the same escaping method:
 *       EXAMPLE_ML_KEY = ^4Green ^3Team color ^1Default
 * @note This functions return value behaves differently depending on what is
 *       used as the client index: If 0 is specified, then the function will
 *       return 0 if nothing has been sent (no client connected). If either a
 *       single client is specified, or there is at least one client connected,
 *       the number of printed characters will refer to the message that is sent
 *       last, to the client with the highest index.
 *
 * @param index     Client index, use 0 to display to all clients
 * @param sender    Client index used as the message sender
 * @param fmt       Formatting rules
 * @param ...       Variable number of formatting parameters
 *
 * @return          Number of printed characters
 * @error           If a single client is specified and the index is not within
 *                  the range of 1 to MaxClients, an error will be thrown.
 */
native client_print_color(index, sender, const message[], any:...);
Код:
/**
 * Color types for client_print_color()
 */
enum
{
    print_team_default = 0,
    print_team_grey = -1,
    print_team_red = -2,
    print_team_blue = -3,
};
21 Дек 2017
print_chat юзается в client_print()
 
Сообщения
31
Реакции
2
Предупреждения
5
Есть один момент, если новый игрок заходит с ником, который уже набил 10 фрагов, то его не блочит. Пример дефолтные ники с бустов.
 
Сообщения
451
Реакции
254
Помог
9 раз(а)
YURBAS, сохранение статистики по Стимайди сделайте
 
Сообщения
31
Реакции
2
Предупреждения
5
malniata, я бы с удовольствием, только хз как это делать(
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу