From b6144d6632d97e5c98a3d5bb4394907bd2b6cd33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=5BMEF=5D=20=D0=BC=D0=B5=D1=85=D1=80=D0=BE=D0=B1?= <124378025+happy1063@users.noreply.github.com> Date: Fri, 22 Nov 2024 18:27:50 +0300 Subject: [PATCH] Update mute.lua --- mute.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mute.lua b/mute.lua index 20b49d1..af61916 100644 --- a/mute.lua +++ b/mute.lua @@ -1,5 +1,5 @@ --@name mute ---@author NiKoT1n +--@author cool_bro --@shared --[[ Blocks player messages (for yourself only) @@ -16,7 +16,7 @@ if SERVER then local players local name local finded - hook.add("PlayerSay","tp",function(ply,text) + hook.add("PlayerSay","mute",function(ply,text) if ply == owner() and string.explode(" ",text)[1] == "mute" then players = find.allPlayers() name = string.explode(" ",text)[2] @@ -30,7 +30,8 @@ local finded net.send(ply) end end -return "" + print(player:getName().." muted") + return "" end if ply == owner() and string.explode(" ",text)[1] == "unmute" then players = find.allPlayers() @@ -45,7 +46,8 @@ if ply == owner() and string.explode(" ",text)[1] == "unmute" then net.send(ply) end end -return "" + print(player:getName().." unmuted") + return "" end end) end