tttdamagelogs icon indicating copy to clipboard operation
tttdamagelogs copied to clipboard

Slaying a higher rank

Open ghost opened this issue 7 years ago • 4 comments

I know in the last version of rdm manager you could slay higher ranks then you if you used there steamid is that fix in this version?

ghost avatar Sep 15 '17 12:09 ghost

You still can autoslay higher ranks using steamid. Please note that there is the same problem with the ULX ban command when you try to ban a steamid. I can't do much about it, ULX doesn't give anything to gather information about a player which isn't connected on the server.

Tommy228 avatar Sep 15 '17 18:09 Tommy228

You could check ULib.players[ steamid ].group or use ULib.ucl.getUserFromID( steamid ).group

iViscosity avatar Sep 15 '17 19:09 iViscosity

Thanks for the info, I didn't know about those (maybe they were recently added ?). I'll try them.

Tommy228 avatar Sep 15 '17 19:09 Tommy228

They've been there since 02/15/16 but it doesn't matter :P It's simply how ULib/ulx processes banid, or anything really to deal with using Steam IDs. There's an easy fix by just editing each ID-based command and making it so that if it detects a player to use the regular version of the command (so using aslay instead of aslayid, but you already do that). Checking for offline IDs is the only thing that has to be changed for everything unless they do what is planned for ULX4 and add a 'SteamIDArg' (or something along those lines).

iViscosity avatar Sep 15 '17 19:09 iViscosity