forked from Mythikos/gmod-flood-2.0
A!
This commit is contained in:
parent
ceb9595976
commit
89d847ba19
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user