Skip to content

Commit dd5a3e0

Browse files
Сodestyle fixes & improvements (#211)
* separate conditions * gag: reasons: the bracket is open even if there is no time * gag: reasons menu: fixed when the closing bracket was applied regardless of the presence of the opening bracket * up * up * gag: MenuShow_SelectReason: revert changes * codestyle fixes & improvements * fix * compile fix Co-authored-by: Sergey Shorokhov <[email protected]>
1 parent 03ae074 commit dd5a3e0

File tree

7 files changed

+230
-113
lines changed

7 files changed

+230
-113
lines changed

cstrike/addons/amxmodx/scripting/CA_Addon_DeathMute.sma

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ enum NotifyType_s: {
2424
notify_HUD
2525
}
2626

27-
new bool: g_canSpeakWithAlive[MAX_PLAYERS + 1] = { false, ... }
27+
new bool: g_canSpeakWithAlive[MAX_PLAYERS + 1]
2828

2929
new g_syncHudOj
3030

@@ -36,6 +36,7 @@ public stock const PluginDescription[] = "Alive players don't hear dead players
3636

3737
public plugin_init() {
3838
register_plugin(PluginName, PluginVersion, PluginAuthor)
39+
3940
register_dictionary("CA_Addon_DeathMute.txt")
4041

4142
Register_CVars()
@@ -126,13 +127,15 @@ Register_CVars() {
126127

127128
public client_disconnected(id) {
128129
g_canSpeakWithAlive[id] = false
130+
129131
if(task_exists(id)) {
130132
remove_task(id)
131133
}
132134
}
133135

134136
public CBasePlayer_Spawn(const id) {
135137
g_canSpeakWithAlive[id] = true
138+
136139
if(task_exists(id)) {
137140
remove_task(id)
138141
}

0 commit comments

Comments
 (0)