Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: epicskillz on July 07, 2010, 01:26:20 PM

Title: Automated banning system
Post by: epicskillz on July 07, 2010, 01:26:20 PM
I would like to make a automated banning system for those who spawn props too fast. How would I go about doing that, Also would I need to make a plugin? If so how would I do that?
Title: Re: Automated banning system
Post by: MrPresident on July 07, 2010, 01:52:47 PM
What is your current skill in lua? The easiest way would be to use the PlayerSpawnedProp hook to track the player actually spawning the props. You could have either a total count that decays over time or have a count that wipes every so often to check and see if the player has spawned too many too quick.

Where ULib comes into play could be using the ULib function for banning a player. Not sure what it is off the top of my head.

This would be an incredibly easy script to write, but automated banning crosses into that realm that most scripters/server owners dont want to really dabble in. Maybe auto kicking.
Title: Re: Automated banning system
Post by: jay209015 on July 07, 2010, 03:28:38 PM
Quote
This would be an incredibly easy script to write, but automated banning crosses into that realm that most scripters/server owners dont want to really dabble in. Maybe auto kicking.
     - I agree with MyPresident 100% here. However, most of the work has been done for you. Just take a look in our releases for ASpam.
Title: Re: Automated banning system
Post by: epicskillz on July 07, 2010, 04:03:34 PM
Okay thanks. I have never tried coding in Garry's Mod although I have some Lua and C# experience(mostly C# though).
Title: Re: Automated banning system
Post by: MrPresident on July 08, 2010, 11:40:38 AM
If you have ever done ANY programming or scripting than learning the transition into GLua is really a pain free process. The best part is you can see the results of your work almost immediately. Also, believe it or not... the GLua debugging messages in the console are actually pretty helpful.
Title: Re: Automated banning system
Post by: Megiddo on July 08, 2010, 11:51:07 AM
Also, believe it or not... the GLua debugging messages in the console are actually pretty helpful.

Wish he'd give us the stack trace like standard Lua instead of just the line the error occurred on, though.