ULX

Author Topic: ASpam  (Read 72284 times)

0 Members and 1 Guest are viewing this topic.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
ASpam
« on: June 05, 2008, 11:03:06 PM »
===============ASpam v2.2===============
|                                 <W.I.P>                                    |
 This is my first release, so the code is pretty sloppy and has
 one major bug I know o
f. Enjoy, and leave your comments
 and suggestions.

 Things to Come:
           - Various Bug fixes
           - Relocate the configs outside of the main lua file
           - Vgui to display your current warning lvl (already W.I.P)
           - Config for maximum time to wait for a dupe to complete
 Know Bugs:
           - You are free to spam for 10 seconds immediately after the
                  the use of the adv_dupe or regular dupe
- Fixed
 Current Features:
           - Warning system
           - Notifies admins of possible spammers
           - Auto kicks spammers after a set warning level
           - Spam delay based on the "Danger" of the props
           - Vgui to display your current warning lvl - Added
           - Players props are now removed when being kicked for spam - Added
           - The time displayed to clients to wait until spawning a props is now rounded properly - Fixed
           - Now checks to see if you have UPS and if so delete players props with ups instead - Fixed
           - Optimized the way the script checks number a warns and made the hook name Unique
                              so that it doesn't conflict with other scripts 0 Fixed
           - Hopefully is kicks people now......
           - It is guaranteed to kick people now
           - If by chance they get lucky and not get kicked, spawning of props for them will be disabled
           - Removes all the offenders props if they surpass the max warning level
           - Can set the limit for entities spawn-able with an advanced duplicator
           - Can set whether or not to allow the original duplicator(less spam protection if allowed)
           - Replaced Admin_Immune with Immune = {} (See configs below)

|                                                                                  |
======================================
 Sample Config:

Code: [Select]
--Potentially Harmful props have a longer delay in spawn time
local dlist = { "crane_frame.mdl", "models/props_phx/ball.mdl", "models/props_phx/oildrum001_explosive.mdl", "models/props_phx/mk-82.mdl", "models/props_phx/torpedo.mdl", "models/props_phx/ww2bomb.mdl", "models/props_phx/misc/flakshell_big.mdl", "models/props_junk/gascan001a.mdl", "models/props_junk/propane_tank001a.mdl", "models/props_c17/oildrum001_explosive.mdl", "models/props_phx/huge/tower.mdl", "models/props_phx/huge/evildisc_corp.mdl", "models/props_phx/playfield.mdl", "models/props_c17/utilitypole01d.mdl", "models/props_buildings/building_002a.mdl", "models/props_buildings/collapsedbuilding02b.mdl", "models/props_buildings/collapsedbuilding02c.mdl", "models/props_buildings/project_building01.mdl", "models/props_buildings/project_building02.mdl", "models/props_buildings/project_building03.mdl", "models/props_buildings/project_destroyedbuildings01.mdl", "models/props_buildings/row_church_fullscale.mdl", "models/props_buildings/row_corner_1_fullscale.mdl", "models/props_buildings/row_res_1_fullscale.mdl", "models/props_buildings/row_res_2_ascend_fullscale.mdl", "models/props_canal/canal_bridge01.mdl", "models/props_canal/canal_bridge02.mdl", "models/props_canal/canal_bridge03a.mdl", "models/props_canal/canal_bridge03b.mdl" }
local Delay = 0.3 --Delay for normal props
local XDelay = 1  -- Delay for the props in the dlist
local Warn_Player = 5 -- After what warning lvl should the player be warned?
local Max_Warn = 10 -- Max number of times a player can be warned before getting kicked
local Max_dupe_ents = 100 -- Max number of entities allowed to be pasted via advance duplicator
local allow_default_duplicator = false -- Allow the use of the default duplicator (Recommend false: Not as much control over props spawned)
local Immune = { 'superadmin', 'admin' }
--==============================DO NOT EDIT BELOW THIS POINT===================================--


Promotions.lua is no longer supported since I'm overhauling it completely and making it separate from ASpam.

View It In Action



« Last Edit: April 18, 2010, 08:54:38 PM by jay209015 »
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: ASpam
« Reply #1 on: June 06, 2008, 07:21:59 AM »
Nice work Jay!
Experiencing God's grace one day at a time.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: ASpam
« Reply #2 on: June 06, 2008, 12:28:05 PM »
Thanks, any suggestions?
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Lt.Smith

  • Newbie
  • *
  • Posts: 32
  • Karma: 4
Re: ASpam
« Reply #3 on: June 07, 2008, 03:06:29 AM »
Looks like a pile of awesome. I'll try her out! :)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ASpam
« Reply #4 on: June 08, 2008, 05:02:24 AM »
 Does this check to see if the item you're spawning, or duplicate spawning, is the same item you just spawned?
I know I could look at the code, but thought others might like to know.
(And, to those G4P forum folks who hang out here, yes, I'm headed the same way as TopHat Man did in a post about anti-spam)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: ASpam
« Reply #5 on: June 08, 2008, 07:41:42 PM »
No, but that is a good idea to add. Because spammers don't go through an assortment of objects, they just spam one like crazy.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Tophat Man

  • Newbie
  • *
  • Posts: 17
  • Karma: 2
Re: ASpam
« Reply #6 on: June 08, 2008, 08:01:04 PM »
Yeah thats what I was thinking, although they think uppl does enough spam protection already. Which it does, but this would be useful when you don't want to limit props I guess.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: ASpam
« Reply #7 on: June 08, 2008, 08:09:00 PM »
Quote
Does this check to see if the item you're spawning, or duplicate spawning, is the same item you just spawned?

Added, now if the prop you just spawned is the same as your previous prop you have to wait 1 second to spawn another prop.

Next on the list:
               -Add the warning lvl vgui
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ASpam
« Reply #8 on: June 08, 2008, 08:39:15 PM »
Good idea Tophat (yes, saw you ask about it on G4P)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: ASpam
« Reply #9 on: June 08, 2008, 08:46:14 PM »
===============ASpam v1.2===============
|                                 <W.I.P>                                    |
 This is my first release, so the code is pretty sloppy and has
 one major bug I know of. Enjoy, and leave your comments
 and suggestions.

 Things to Come:
           - Promotions based on time and warning lvl (already W.I.P)
           - Various Bug fixes
           - Relocate the configs outside of the main lua file
           - Vgui to display your current warning lvl (already W.I.P)
           - Add the dynamic Variable %promotions% to Umotd(already W.I.P)
 Know Bugs:
           - You are free to spam for 10 seconds immediately after the
                  the use of the adv_dupe or regular dupe
 Current Features:
           - Warning system
           - Notifies admins of possible spammers
           - Auto kicks spammers after a set warning level
           - Spam delay based on the "Danger" of the props
           - Vgui to display your current warning lvl - Added
           - If you spawn duplicate props, you now have a higher delay time - Added
           - Promotions based on time and warning lvl - Added
           - Print the last three promotions to latestpromotes.txt - Added
|                                                                                  |
======================================

<--------------------Download from main post-------------------------->
« Last Edit: June 11, 2008, 06:57:06 AM by jay209015 »
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: ASpam
« Reply #10 on: June 09, 2008, 05:10:06 PM »
===============ASpam v1.2===============
|                                 <W.I.P>                                    |
 This is my first release, so the code is pretty sloppy and has
 one major bug I know of. Enjoy, and leave your comments
 and suggestions.

 Things to Come:
           - Promotions based on time and warning lvl (already W.I.P)
           - Various Bug fixes
           - Relocate the configs outside of the main lua file
           - Vgui to display your current warning lvl (already W.I.P)
           - Add the dynamic Variable %promotions% to Umotd(already W.I.P)
 Know Bugs:
           - You are free to spam for 10 seconds immediately after the
                  the use of the adv_dupe or regular dupe
 Current Features:
           - Warning system
           - Notifies admins of possible spammers
           - Auto kicks spammers after a set warning level
           - Spam delay based on the "Danger" of the props
           - Vgui to display your current warning lvl - Added
           - If you spawn duplicate props, you now have a higher delay time - Added
           - Promotions based on time and warning lvl - Added
           - Print the last three promotions to latestpromotes.txt - Added
|                                                                                  |
======================================

<--------------------Download from main post-------------------------->
« Last Edit: June 11, 2008, 06:56:34 AM by jay209015 »
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: ASpam
« Reply #11 on: June 10, 2008, 10:20:12 PM »
Any new bugs found yet, if not please post your comments/suggestions.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: ASpam
« Reply #12 on: June 11, 2008, 06:19:02 PM »
Updated V1.3
        - Added %promotions% for Umotd users
        - Removed the last prop check due to bugs
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Re: ASpam
« Reply #13 on: June 14, 2008, 07:23:37 AM »
I will test this today on my server

EDIT : WOW, This is insanely awesome, definitely staying on my server, it stops most spammers, But i think you should add something like, Once they get kicked their props would be automatically cleaned up straight away, Because they could come back in the time it takes for the props to be cleaned, spam another lot, get kicked, rejoin spam again and repeat. Also you may want to round this


You must wait 0.30000000000001 second(s) before spawning another prop/ent


Is this working? I have only tested spamming it myself and didn't receive a warning, but we will see
- Notifies admins of possible spammers

Also another suggestion, How about the warnings expire after a set period of time
« Last Edit: June 14, 2008, 07:38:37 AM by Sc00by22 »

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: ASpam
« Reply #14 on: June 14, 2008, 06:30:08 PM »
Quote
You must wait 0.30000000000001 second(s) before spawning another prop/ent
   I only get this sometimes, but most of the time it will display 0.3 after a server restart or map change.

Quote
Is this working? I have only tested spamming it myself and didn't receive a warning, but we will see
- Notifies admins of possible spammers

   Yes, you should get a message similar to this one once a player gets over 5 warnings:
Code: [Select]
( Console ) to admins: Player Jay209015 is spamming, and has a warn level of 5. Kicking them after 5 more warnings.
Quote
Also another suggestion, How about the warnings expire after a set period of time
   
   Already a feature. You have a 1 minute cooldown timer, so if you don't spam you lose 1 warning lvl every minute.


Quote
Once they get kicked their props would be automatically cleaned up straight away

        Working on it now.
« Last Edit: June 14, 2008, 06:31:54 PM by jay209015 »
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly