daffyyyy / CS2-SimpleAdmin

Manage your Counter-Strike 2 server by simple commands :)
https://cs2-simpleadmin.daffyy.love
GNU General Public License v3.0
104 stars 36 forks source link

Implement consistent targeting #102

Open dollannn opened 5 months ago

dollannn commented 5 months ago

CSGO and sourcemod had a good targeting system, currently it is very inconsistent which commands use steamid, name or userid.

It would be beneficial for everyone if commands had a clear and concise way of targeting. Also something which annoys me is that certain commands such as ungag or unmute, removes the penalty for everyone with the name of "Adam" even though all those Adams might not be online, any type of removal of punishment by name should only be allowed for online players. Some commands could even be merged with this system as selectors define what route the command takes.

Reference

daffyyyy commented 5 months ago

Just use steamid for offline player?

dollannn commented 5 months ago

Yes but the commands are differentiated. It would be best if there was some sort of way for the commands to recognize which selector is used either name, userid or steamid and execute based on that