sbpp / sourcebans-pp

Admin, ban, and comms management system for the Source engine
https://sbpp.github.io/
Creative Commons Attribution Share Alike 4.0 International
333 stars 174 forks source link

Improving sm_banip #857

Closed Rushaway closed 1 year ago

Rushaway commented 1 year ago

Description

  1. Print the name of the banned client when using target name as arg 1.1 Get the target name of the user banned via sm_banip 1.2 Will print target name instead of 'No nickname present' 1.3 You can still use the command like sm_banip 255.255.22.2 240 Cheat (Will be show as 'No nickname present')

  2. Kick the target banned via sm_banip if the callback succes

  3. Remove extra tabs in AutoAdd part

Motivation and Context

When a banip was made, client aren't kicked and was printed on Sourcebans website as 'No nickname present'

How Has This Been Tested?

  1. sm_banip 255.255.55.5 240 Cheat
  2. sm_banip Rushaway 240 Cheat (in this case if player stil on the server it will be kicked if the CallBack succes)

Screenshots (if appropriate):

  1. image
  2. image

Types of changes

Checklist:

Hackmastr commented 1 year ago

Thanks!