Ulysses Stuff > Suggestions
sourcebans
JamminR:
--- Quote from: compuwiz on March 24, 2008, 05:03:36 PM ---you are sending the server console the persons steamid, not their name/user#.
--- End quote ---
Sorry, got confused. I'm not sure I like a mod using the userid of a player to administer.
All I'd have to do to possibly get someone else banned is change my name to their playerid.
This seems like a bad idea to me.
Either way, I've corrected the script to use the userid when banning.
If it doesn't work, let me know, perhaps I should use entity id instead.
You still type in the name of the player you're wanting banned. ULX will determine if they've faked the name as a number and attempt ban/kick approprately.
--- Quote from: compuwiz on March 24, 2008, 05:03:36 PM --- and if you ban using the persons name won't it display the persons name in the ULX ban info page too?
--- End quote ---
Yes, but I thought you might want the person who banned them in the reason field for SMban logs too.
As it stands, it will always look like console banned them if not.
I've removed the banned user name.
--- Quote from: compuwiz on March 24, 2008, 05:03:36 PM ---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 :))
--- End quote ---
At one time, the UK server was giving us a free 6 man server in exchange for links.
In all honesty, we don't want more, and should actually remove those, as the UK server dissapeared long ago.
compuwiz:
--- Quote from: JamminR on March 24, 2008, 07:38:18 PM ---Sorry, got confused. I'm not sure I like a mod using the userid of a player to administer.
All I'd have to do to possibly get someone else banned is change my name to their playerid.
This seems like a bad idea to me.
Either way, I've corrected the script to use the userid when banning.
If it doesn't work, let me know, perhaps I should use entity id instead.
You still type in the name of the player you're wanting banned. ULX will determine if they've faked the name as a number and attempt ban/kick approprately.
--- End quote ---
You don't have to use the userid, it can go by player name.
--- Quote from: JamminR on March 24, 2008, 07:38:18 PM ---Yes, but I thought you might want the person who banned them in the reason field for SMban logs too.
As it stands, it will always look like console banned them if not.
I've removed the banned user name.
--- End quote ---
I do want the name of the person that banned them, the name of the banned player is what isn't needed.
--- Quote from: JamminR on March 24, 2008, 07:38:18 PM ---At one time, the UK server was giving us a free 6 man server in exchange for links.
In all honesty, we don't want more, and should actually remove those, as the UK server dissapeared long ago.
--- End quote ---
I didn't mean for you to get another server, I thought you were just listing some good places to get gmod servers, so I was just giving you a good place in the US to have a link for.
JamminR:
--- Quote from: compuwiz on March 25, 2008, 04:51:54 AM ---You don't have to use the userid, it can go by player name.
--- End quote ---
How does SourceMod tell the difference between a person with a number for a name, and a player with that userid.
Say Tom and Fred are on a server.
Tom is a trouble maker. He runs status and sees Fred's userid is 12. Tom changes his name to 12
You quickly type sm_ban 12 0 Trouble maker
Does it kick Tom or Fred?
I understand more now yet one more reason you'd want to use ULX as an sm_ban addon. You feed ulx smban "name", it does the lookup for you.
Let me know how the beta2 file attached above works for you
compuwiz:
Ok, I will edit this post when I have tried it, but I found more commands for it when looking at its source that I didn't realize were part of sourcebans.
--- Code: --- RegAdminCmd("sm_ban", CommandBan, ADMFLAG_BAN, "sm_ban <#userid|name> <minutes|0> [reason]");
RegAdminCmd("sm_banip", CommandAddBan, ADMFLAG_BAN, "sm_banip <time> <ip|#userid|name> [reason]");
RegAdminCmd("sm_addban", CommandAddBan, ADMFLAG_RCON, "sm_addban <time> <steamid> <name> [reason]");
RegAdminCmd("sm_unban", CommandUnban, ADMFLAG_UNBAN, "sm_unban <steamid>");
--- End code ---
JamminR:
Those other commands could be added later. I'm just curious about how it's working with what we have now.
I use the 'Show Unread posts since last visit' link to monitor the boards so you might want to make a new post to say if it's working or not.
So far so good?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version