This commit is contained in:
chickencvgmailcom 2024-05-19 14:38:55 +08:00
parent ceb9595976
commit 89d847ba19
2 changed files with 5 additions and 5 deletions

View File

@ -131,7 +131,7 @@ function NADMOD.PlayerCanTouch(ply, ent)
NADMOD.SetOwnerWorld(ent)
else
--NADMOD.PlayerMakePropOwner(ply, ent)
NADMOD.Notify(ply, "You may not touch this prop.")
--NADMOD.Notify(ply, "You may not touch this prop.")
return false
end
end

View File

@ -8,8 +8,8 @@ local function PlayerIsFriend(ply, ply2)
return false
end
local gr=Color(8,93,55)
hook.Add("PlayerSay","TeamChatTempFix!",function(ply,txt,team)
if(team)then
hook.Add("PlayerSay","TeamChatTempFix!",function(ply,txt,ateam)
if(ateam)then
local friends=ply:CPPIGetFriends()
local ct=ChatText()
ct:AddText("[TEAM]",gr)
@ -18,11 +18,11 @@ hook.Add("PlayerSay","TeamChatTempFix!",function(ply,txt,team)
ct:AddText(txt)
ct:Send(ply)
for _,v in pairs(friends)do
if(PlayerIsFriend(v,ply))then
if(v~=ply and PlayerIsFriend(v,ply))then
ct:Send(v)
end
end
ct=nil collectgarbage("step", 64)
return true
return ""
end
end)