Ulysses Stuff > Suggestions

sourcebans

<< < (3/6) > >>

compuwiz:
It kicks them.

JamminR:
compuwiz, please test the attached file. (Must be logged into the forum to see it)
For now, all it adds is chat (!smban) and console (ulx smban) capability. No menu yet.
This acts exactly like our ulx ban command, and requires at the least 'admin' access by default.
You can use the ulx groupallow "ulx smban" if you want other groups to have it. (Same with individual users 'userallow')
This will not kick the player as our ulx ban does, it only
1) Logs the SMBan if logging is enabled
2) Bans the user using ULib, which gets stored on local server. No kick. This may also get done by SourceMod, but did it for logging reasons and 'just in case'
3) Sends the following to server console.

--- Code: ---sm_ban target_steamid time reason

--- End code ---
Though ULX logs this as <blah> SMBanned <blah>, I thought you might want SourceMod to always contain who actually banned too.
So, Reason will always contain, at the least "admin_name SMBanned target_name" ... if a reason was actually specified, it will have
"admin_name SMBanned target_name (reason here)"

Let me know what errors you get if this doesn't work.
Let me know if this works too.
Let me know what else you think it needs.
I'm probably going to release this somewhere 'officially' once the kinks get ironed out.



compuwiz:
I will try this later today, for now I am wondering, does this run the command from the client console or the server console? One advantage of having it run from the server console is that I will not have to add admins to Sourcemod aas well as ULib (you would want the reason to include the person that banned them, but the player name is not needed), or if you have it run from the client console I will have to add the admins to SM as well (admin and player name would not need to be included). You can take a look at my test installation of SB here: http://requiem.dreamhosters.com/bans/index.php?p=banlist

Edit:
It does not work, but I see the problem, you are sending the server console (so it is server, not client, right?) the persons steamid, not their name/user#.

JamminR:
It runs from server console. The person trying to run the command has to have Ulib admin or group "ulx smban" access (whether by group or individual user)
Just see if it works before we tweak it.

compuwiz:
I think you posted while I was editing my previous post.

It does not work, but I see the problem, you are sending the server console the persons steamid, not their name/user#. If I use sb_ban it works, so it is the addon.
Also, you can remove the name of the player being banned in the reason, that is included in sourcebans as you can see from the web interface, and if you ban using the persons name won't it display the persons name in the ULX ban info page too?

I also noticed that you have a link on the bottom of your site for Gmod servers hosted in the UK, I have my server hosted with a company in the US that has very good servers at a low price (http://mammothgames.com), maybe you could ass that one for servers in the US. (I could give you a referral link to use if you wanted to use that :))

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version