forked from TeamUlysses/ulx
add multiple chat listeners for ulx psay (!psay and !pm)
This commit is contained in:
parent
4f823a9b02
commit
fc73984f95
@ -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 )
|
||||
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.StringArg, hint="message", ULib.cmds.takeRestOfLine }
|
||||
psay:defaultAccess( ULib.ACCESS_ALL )
|
||||
|
Loading…
Reference in New Issue
Block a user