forked from TeamUlysses/ulx
Disable PM's for Muted Users
This commit is contained in:
parent
10cb7bdf36
commit
98bb22486f
@ -3,6 +3,11 @@ CATEGORY_NAME = "Chat"
|
||||
|
||||
------------------------------ Psay ------------------------------
|
||||
function ulx.psay( calling_ply, target_ply, message )
|
||||
if calling_ply:GetNWBool('ulx_muted', false) then
|
||||
ULib.tsayError( calling_ply, "You are muted, and therefore cannot speak!", true )
|
||||
return
|
||||
end
|
||||
|
||||
ulx.fancyLog( { target_ply, calling_ply }, "#P to #P: " .. message, calling_ply, target_ply )
|
||||
end
|
||||
local psay = ulx.command( CATEGORY_NAME, "ulx psay", ulx.psay, "!p", true )
|
||||
|
Loading…
Reference in New Issue
Block a user