Sometimes when I try to slay a person with ulx I end up accidentally typing in something that can refer to multiple people and it slays all of them.
Is there a way I can have it like banning where it will only do the 1?
Change
[code]slay:addParam{ type=ULib.cmds.PlayersArg }[/code]
To
[code]slay:addParam{ type=ULib.cmds.PlayerArg }[/code]
Will make it so the command only works on one player.
Look for this code snippet in Ulx/Modules/sh/fun.lua, and assuming you haven't edited it, it's line 93.
thanks
[QUOTE=TheDivinity;39183222]Change
[code]slay:addParam{ type=ULib.cmds.PlayersArg }[/code]
To
[code]slay:addParam{ type=ULib.cmds.PlayerArg }[/code]
Will make it so the command only works on one player.
Look for this code snippet in Ulx/Modules/sh/fun.lua, and assuming you haven't edited it, it's line 93.[/QUOTE]
Problem is that this might kill someone unexpected. Perhaps should make a check to determine if it matches multiple players, and then displays a warning and ends.
nvm, doesn't work...
no errors, but when I open it up for multiple people it says no target found (like it should)
but when I try to slay an individual it does nothing at all.
'ulx kick' should have the check you're looking for
already tried comparing like that, I even made a god damn Venn diagram.
Sorry, you need to Log In to post a reply to this thread.