-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
JavaScript:
const master_switch = UI.AddCheckbox("trashtalk");
const normal_killsays = ["1"
];
const hs_killsays = ["1"
];
const on_player_death = function()
{
if(UI.GetValue.apply(null, master_switch))
{
const attacker = Entity.GetEntityFromUserID(Event.GetInt("attacker"));
if(Entity.IsLocalPlayer(attacker) && attacker != Entity.GetEntityFromUserID(Event.GetInt("userid")))
{
Cheat.ExecuteCommand("say " + (Event.GetInt("headshot") == 1 && Math.random() > 0.5 ? hs_killsays[Math.floor(Math.random() * hs_killsays.length)] : normal_killsays[Math.floor(Math.random() * normal_killsays.length)]));
}
}
};
Cheat.Print("trashtalk js loaded, killsay count: " + normal_killsays.length + hs_killsays.length + "\n");
Cheat.RegisterCallback("player_death", "on_player_death");
C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\sound
Вложения
-
492 байт Просмотры: 307