Скриптер
Проверенный
Пользователь
- Сообщения
- 3,579
- Реакции
- 1,569
- Помог
- 137 раз(а)
} else if (ShowInfo == 2) {
ShowSyncHudMsg(player, HudSync, "%l:%c%s",
"BRP_MESSAGE", (NameNewLine ? "^n" : " "), name
);
}
bind_pcvar_num(create_cvar(
"bpr_show_info", "1", .has_min = true, .min_val = 0.0, .has_max = true, .max_val = 1.0
), ShowInfo);
arrayset(Players[player], 0, sizeof(Players[]));
for (new i = 0, player; i < num; i++) {
player = players[i];
arrayset(Players[player], 0, sizeof(Players[]));
if (!CheckBit(PlayersEnabled, player) || is_user_bot(player)) {
continue;
}
if (ShowInfo) {
ShowSyncHudMsg(player, HudSync, "%l:%c%s^n%d %l, %d %l %l %d %l",
"BRP_MESSAGE", (NameNewLine ? "^n" : " "), name,
Players[maxId][PlayerKills], Titles[0][num1],
Players[maxId][PlayerHS], Titles[1][num2],
"BPR_AND", Players[maxId][PlayerDmg], "BPR_DMG"
);
} else if (ShowInfo == 2) {
ShowSyncHudMsg(player, HudSync, "%l:%c%s",
"BRP_MESSAGE", (NameNewLine ? "^n" : " "), name
);
}
if (len > 0) {
if (player == maxId) {
client_print_color(player, maxId, "%L %L", player, "BPR_PREFIX", player, "BPR_BONUS", message);
} else if (ShowAll) {
client_print_color(player, maxId, "%L %L", player, "BPR_PREFIX", player, "BPR_BONUS_ALL", name, message);
}
}
}
В версии 1.0.1 не показывает в hud кол-во: фрагов, попаданий в голову, общего урона (везде 0).
if (
Players[player][PlayerKills] > Players[maxId][PlayerKills] ||
(
Players[player][PlayerKills] == Players[maxId][PlayerKills] &&
Players[player][PlayerDmg] > Players[maxId][PlayerDmg]
)
) {
maxId = player;
}
if (Players[player][PlayerDmg] > Players[maxId][PlayerDmg]) {
maxId = player;
}
Благодарю, так все нормально)C++:-len += formatex(message[len], charsmax(message) - len, "^1[^4%d EXP^1] ", AesExp); + len += formatex(message[len], charsmax(message) - len, "^1[^4%.0f EXP^1] ", AesExp);