1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
addhook("sayteam", "yates.hook.sayteam")
function yates.hook.second()
	for _, id in pairs(player(0, "table")) do
		if yates.player[id].mute_time > 0 then
			yates.player[id].mute_time = yates.player[id].mute_time - 1
			if _PLAYER[player(id, "usgn")] and _PLAYER[player(id, "usgn")].mute_time and _PLAYER[player(id, "usgn")].mute_time > 0 then
				_PLAYER[player(id, "usgn")].mute_time = _PLAYER[player(id, "usgn")].mute_time - 1
				if _PLAYER[player(id, "usgn")].mute_time == 0 then
					_PLAYER[player(id, "usgn")].mute_time = nil
				end
				saveData(_PLAYER, "data_player.lua")
			end
			if yates.player[id].mute_time == 0 then
				yates.player[id].mute_reason = ""
				yatesMessage(id, "You are no longer muted.", "info")
				if _PLAYER[player(id, "usgn")] and _PLAYER[player(id, "usgn")].mute_reason then
					_PLAYER[player(id, "usgn")].mute_reason = nil
					saveData(_PLAYER, "data_player.lua")
				end
			end
		end
	end
	action("second")
end