add multiple chat listeners for ulx psay (!psay and !pm)

This commit is contained in:
edshot99 2024-03-25 02:16:55 -05:00
parent 4f823a9b02
commit fc73984f95

View File

@ -10,7 +10,7 @@ function ulx.psay( calling_ply, target_ply, message )
ulx.fancyLog( { target_ply, calling_ply }, "#P to #P: " .. message, calling_ply, target_ply ) ulx.fancyLog( { target_ply, calling_ply }, "#P to #P: " .. message, calling_ply, target_ply )
end end
local psay = ulx.command( CATEGORY_NAME, "ulx psay", ulx.psay, "!p", true ) local psay = ulx.command( CATEGORY_NAME, "ulx psay", ulx.psay, {"!p", "!pm", "!psay"}, true )
psay:addParam{ type=ULib.cmds.PlayerArg, target="!^", ULib.cmds.ignoreCanTarget } psay:addParam{ type=ULib.cmds.PlayerArg, target="!^", ULib.cmds.ignoreCanTarget }
psay:addParam{ type=ULib.cmds.StringArg, hint="message", ULib.cmds.takeRestOfLine } psay:addParam{ type=ULib.cmds.StringArg, hint="message", ULib.cmds.takeRestOfLine }
psay:defaultAccess( ULib.ACCESS_ALL ) psay:defaultAccess( ULib.ACCESS_ALL )