Ulysses

Ulysses Stuff => Releases => Ulysses Release Archives => Topic started by: jay209015 on June 05, 2008, 11:03:06 PM

Title: ASpam
Post by: jay209015 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 (http://www.youtube.com/watch?v=hzAcCJWw-CA)



Title: Re: ASpam
Post by: Megiddo on June 06, 2008, 07:21:59 AM
Nice work Jay!
Title: Re: ASpam
Post by: jay209015 on June 06, 2008, 12:28:05 PM
Thanks, any suggestions?
Title: Re: ASpam
Post by: Lt.Smith on June 07, 2008, 03:06:29 AM
Looks like a pile of awesome. I'll try her out! :)
Title: Re: ASpam
Post by: JamminR 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)
Title: Re: ASpam
Post by: jay209015 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.
Title: Re: ASpam
Post by: Tophat Man 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.
Title: Re: ASpam
Post by: jay209015 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
Title: Re: ASpam
Post by: JamminR on June 08, 2008, 08:39:15 PM
Good idea Tophat (yes, saw you ask about it on G4P)
Title: Re: ASpam
Post by: jay209015 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-------------------------->
Title: Re: ASpam
Post by: jay209015 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-------------------------->
Title: Re: ASpam
Post by: jay209015 on June 10, 2008, 10:20:12 PM
Any new bugs found yet, if not please post your comments/suggestions.
Title: Re: ASpam
Post by: jay209015 on June 11, 2008, 06:19:02 PM
Updated V1.3
        - Added %promotions% for Umotd users
        - Removed the last prop check due to bugs
Title: Re: ASpam
Post by: Sc00by22 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
Title: Re: ASpam
Post by: jay209015 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.
Title: Re: ASpam
Post by: AviZ on June 15, 2008, 10:25:41 PM
i notice when users use the stacker and adv dupe they cant and complain, i like this but had to remove it twice cos people cant dupe and stack due to getting kicked
Title: Re: ASpam
Post by: jay209015 on June 15, 2008, 11:31:10 PM
The dupe has a time limit of 10 seconds to wait for it to complete, if it takes longer then that. They will most likely get kicked. As for the stacker, I was unable to replicate this.
Title: Re: ASpam
Post by: jay209015 on June 15, 2008, 11:32:13 PM
ASpamv1.4
   - Players props are removed when being kicked for spam
   - Fixed the times not being rounded properly
Title: Re: ASpam
Post by: Sc00by22 on June 16, 2008, 01:59:25 PM
Working great, Good job!
Title: Re: ASpam
Post by: Sc00by22 on June 17, 2008, 09:52:05 AM
Error when using Slider Tool, Probably with other tools as well


Hook 'GetTool' Failed: autorun/ASpam.lua:79: attempt to compare nil with number
Title: Re: ASpam
Post by: jay209015 on June 17, 2008, 01:31:23 PM
Thank you, will look into this.


==========EDIT==============
Tested and could not recreate this error.
What version are you using?
Title: Re: ASpam
Post by: Sc00by22 on June 21, 2008, 02:20:17 AM
I've got a problem, When they get kicked for spamming, it says it clears there props, but it actually doesn't
Title: Re: ASpam
Post by: jay209015 on June 21, 2008, 12:22:44 PM
What prop protection are you using?
Title: Re: ASpam
Post by: Sc00by22 on June 22, 2008, 12:29:48 AM
UPS
Title: Re: ASpam
Post by: jay209015 on June 22, 2008, 01:06:05 AM
Oh, ok. I have a fix for that, and I will upload it sometime today.

==EDIT==

v1.5
  - Now checks to see if you have UPS and if so delete players props with ups instead - Fixed
Title: Re: ASpam
Post by: Thermal on June 28, 2008, 10:59:14 PM
If the use of duplicator is allowed then players can use duplicator to spam anyway
Title: Re: ASpam
Post by: jay209015 on June 29, 2008, 12:54:49 AM
Nope, you can barely spam with the dupe. 1 second tool use delay for the dupe, + 10 seconds spawn time limit. So the amount of damage that can be done is limited. If it exceeds 10 seconds it's instant kick and prop removal.
Title: Re: ASpam
Post by: Thermal on June 29, 2008, 01:26:38 AM
so people with complicated things that take 20 seconds to spawn will get kicked...
Title: Re: ASpam
Post by: Lt.Smith on June 29, 2008, 06:14:48 PM
I'd say if it takes over 10 seconds to spawn it'd be too laggy to use in a server anyway.
Title: Re: ASpam
Post by: jay209015 on June 29, 2008, 08:14:12 PM
My thoughts exactly :D
Title: Re: ASpam
Post by: jay209015 on July 12, 2008, 04:15:29 AM
V1.6
- 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
Title: Re: ASpam
Post by: jnewcombe on July 17, 2008, 07:34:38 AM
do admins ect get warned? kicked? you should add some kinda ulx command to add groups.txt for spaming imunity also i dont get the promotions thing does it add them to admin ect or is it just a title


Jon
Title: Re: ASpam
Post by: jay209015 on July 17, 2008, 01:11:52 PM
The promotions got bugged somewhere, for now you can look in your <server>/data/player_promotions.txt and see who needs to be added there.
Title: Re: ASpam
Post by: Smoot178 on July 26, 2008, 12:35:55 PM
The promotions got bugged somewhere, for now you can look in your <server>/data/player_promotions.txt and see who needs to be added there.

Any fixes?
Title: Re: ASpam
Post by: urban on July 26, 2008, 10:47:56 PM
link to download doesn't work
where els can i find it
Title: Re: ASpam
Post by: jay209015 on July 27, 2008, 01:34:12 PM
Sorry, I had the fix uploaded, but ulyssesmod.net went down and lost some of the database. Here's a link to the current.

http://dev-solution.org/resources/gmod/addons/ASpam.zip (http://dev-solution.org/resources/gmod/addons/ASpam.zip)

Enjoy!!
Title: Re: ASpam
Post by: factice on July 28, 2008, 06:00:58 AM
I'v a question about the promotions :

are they " real " ?

What I mean is, if a player is ranked " admin " in the txt file, he will be admin in the game ?  ???
Title: Re: ASpam
Post by: jay209015 on July 28, 2008, 11:48:44 AM
Yes.
Title: Re: ASpam
Post by: factice on July 28, 2008, 02:08:23 PM
 :o oh my god  :o

I'll delete this LUA now  ;D

Too dangerous : a f***ing noob etc... minge, become admin, and destroy your server ? Too dangerous  :)
Title: Re: ASpam
Post by: jay209015 on July 28, 2008, 04:31:41 PM
You can remove admin from the list.
Title: Re: ASpam
Post by: Smoot178 on July 28, 2008, 06:00:48 PM
Does this fix the ranks not working?

Also, is this file correctly done? (attached)

Title: Re: ASpam
Post by: Smoot178 on July 28, 2008, 06:19:21 PM
Does this fix the ranks not working?

Also, is this file correctly done? (attached)

(Ignore the 15th rank, it should be user.  Still, doesn't work.)
Title: Re: ASpam
Post by: jay209015 on July 28, 2008, 06:21:51 PM
Your configs look correct, and it should work if those groups actually exist in your server/garrysmod/data/ULib/groups.txt
Title: Re: ASpam
Post by: Smoot178 on July 29, 2008, 09:31:58 PM
They do.  I tried it with the new config and it was pormoting admins to the second rank like crazy, yet it didnt work on regular players.
Title: Re: ASpam
Post by: jay209015 on July 30, 2008, 04:48:36 AM
Are you getting any errors in console, because I don't see admins in your configs, so they should never be promoted to or from.
Title: Re: ASpam
Post by: Smoot178 on July 30, 2008, 11:36:05 AM
I'm going to redo everything and see if it works then.
Title: Re: ASpam
Post by: Smoot178 on July 30, 2008, 01:49:39 PM
EDIT:

Would this do it?

In my uteam.txt I made this mistake:

   "11"
      {
         "name"      "Private First Class"
         "group"      "privatefirstclassr"

When it should be:

   "11"
      {
         "name"      "Private First Class"
         "group"      "privatefirstclass"
Title: Re: ASpam
Post by: Smoot178 on July 30, 2008, 02:50:39 PM
Okay that seemed to fix it.  It still wants to add me (Smoot in the superadmin group) to private first class though.


Warning: Unhandled usermessage 'ULibLuaFn'
Warning: Unhandled usermessage 'ulib_sound'
Warning: Unhandled usermessage 'UMaps_timer'
Warning: Unhandled usermessage 'UMaps_timer'
Warning: Unhandled usermessage 'UMaps_timer'
Warning: Unhandled usermessage 'UMaps_timer'
Robert Robertson: how did he get to outrank me?
Warning: Unhandled usermessage 'UMaps_timer'
Warning: Unhandled usermessage 'UMaps_timer'
Robert Robertson: /profile
Warning: Unhandled usermessage 'UMaps_timer'
Warning: Unhandled usermessage 'UMaps_timer'
Whitefox08 suicided!
Warning: Unhandled usermessage 'UMaps_timer'
[UCL] Access set.
Player:Smoot has been promoted to privatefirstclass for exceptional behaviour
(ADMIN) (Console) added userid STEAM_0:1:12783335 (Smoot) to group "privatefirstclass"
Warning: Unhandled usermessage 'ulx_resetinfo'
Warning: Unhandled usermessage 'ulx_autocomplete'
Warning: Unhandled usermessage 'ulx_autocomplete'
Warning: Unhandled usermessage 'ulx_autocomplete'
Warning: Unhandled usermessage 'ulx_autocomplete'
Warning: Unhandled usermessage 'ulx_autocomplete'
Warning: Unhandled usermessage 'ulx_autocomplete'
Warning: Unhandled usermessage 'ulx_autocomplete'
Warning: Unhandled usermessage 'ulx_autocomplete'
Warning: Unhandled usermessage 'ulx_autocomplete'
Warning: Unhandled usermessage 'ULibLuaFn'
Warning: Unhandled usermessage 'ulib_sound'


(ignore the umaps error)


EDIT: Also, what could I add to make it kill players when they are promoted?
Title: Re: ASpam
Post by: jay209015 on July 31, 2008, 03:42:13 AM
Add:
     [1] = "superadmin"
     [1] = "admin"

at the top of your groups_to_promote right above colonel, and that should fix your problem, because any group with a value of 1 doesn't get promoted.
Also add them to the promote_to table as the HighestLevel just like you did with colonel.
Title: Re: ASpam
Post by: Smoot178 on July 31, 2008, 09:15:58 AM
Add:
     [1] = "superadmin"
     [1] = "admin"

at the top of your groups_to_promote right above colonel, and that should fix your problem, because any group with a value of 1 doesn't get promoted.
Also add them to the promote_to table as the HighestLevel just like you did with colonel.

But wouldn't that let people be promoted TO the admin group?

EDIT: i tried it anyways, not it won't rank anyone up.  Check the attachment.
Title: Re: ASpam
Post by: jay209015 on July 31, 2008, 12:22:58 PM
No, nothone get's promoted to or from a group level of 1, this also means your colonel will never be reached unless you start from #2 with it.
Title: Re: ASpam
Post by: Smoot178 on July 31, 2008, 04:41:04 PM
No, nothone get's promoted to or from a group level of 1, this also means your colonel will never be reached unless you start from #2 with it.

It still doesn't wanna work.
Title: Re: ASpam
Post by: jay209015 on July 31, 2008, 05:40:53 PM
Still trying to make admins privates?
Need more detail other then it doesn't work.
Title: Re: ASpam
Post by: Smoot178 on July 31, 2008, 06:02:38 PM
Still trying to make admins privates?
Need more detail other then it doesn't work.

It isn't ranking up regular players now.
Title: Re: ASpam
Post by: jay209015 on July 31, 2008, 06:07:38 PM
Ok, I patched it up real quick, they should be able to get promoted to colonel now, but not past it. That is what you wanted correct?
Anyways, your file is attached.
Title: Re: ASpam
Post by: Smoot178 on July 31, 2008, 06:23:40 PM
Ok, I patched it up real quick, they should be able to get promoted to colonel now, but not past it. That is what you wanted correct?
Anyways, your file is attached.

I don't know why that isn't working either.  I have it set to 0.1 hours which is 6 minuntes and it simply isn't promoting them.  Nothing happens AT ALL.  :(
Title: Re: ASpam
Post by: jay209015 on July 31, 2008, 06:39:19 PM
This is very strange, just shut down the server, delete the player_time.txt, and the player_promotions.txt, then reboot. Let me know if it works then.
Btw these files are in your server data folder.
Title: Re: ASpam
Post by: Smoot178 on July 31, 2008, 06:47:45 PM
I added you to AIM.  if you wanna get this across faster log on and I'll send you a message.

By the way, you have been very helpful.  Thank you.

Restarting after deletion of files.

EDIT: Give me 6 minutes to see

EDIT2: Yeah doesn't work.


L 07/31/2008 - 19:55:53: "Console<0><Console><Console>" say "Just don't do anything for the next 2 mins"
Console: Just don't do anything for the next 2 mins
L 07/31/2008 - 19:55:53: "Console<0><Console><Console>" say "Just don't do anything for the next 2 mins"
L 07/31/2008 - 19:55:53: rcon from "72.188.***.***": command "say Just don't do anything for the next 2 mins"
L 07/31/2008 - 19:56:05: "Sgt. Johnson<5><STEAM_0:0:17450249><Team>" say "3 min 40 sec"
L 07/31/2008 - 19:56:23: "Capt. John<2><STEAM_0:1:15316147><Team>" say "Session: 5 min now"
say tell me when it is 6 min on the dot
Console: tell me when it is 6 min on the dot
L 07/31/2008 - 19:56:40: "Console<0><Console><Console>" say "tell me when it is 6 min on the dot"
L 07/31/2008 - 19:56:40: "Console<0><Console><Console>" say "tell me when it is 6 min on the dot"
L 07/31/2008 - 19:56:40: rcon from "72.188.***.***": command "say tell me when it is 6 min on the dot"
L 07/31/2008 - 19:56:46: "Sgt. Johnson<5><STEAM_0:0:17450249><Team>" say "hi"
L 07/31/2008 - 19:56:50: "Hogdriver155<3><STEAM_0:0:19495986><Team>" say "hi"
L 07/31/2008 - 19:56:51: "Capt. John<2><STEAM_0:1:15316147><Team>" say "6 min now"
L 07/31/2008 - 19:57:27: "¤(`×[¤ ßa?a ¤]×´)¤<6><STEAM_0:1:4535507><>" disconnected (reason "Disconnect by user.")
L 07/31/2008 - 19:57:31: "Capt. John<2><STEAM_0:1:15316147><Team>" say "7 min now"
Title: Re: ASpam
Post by: jay209015 on August 01, 2008, 09:38:18 AM
Is this a rented server, do you have access to the server console directly? If so do you get any errors? Because it's kinda strange that it just quit working after just adding superadmin and admin =/
Not much is different from this post:
Quote
Player:Smoot has been promoted to privatefirstclass for exceptional behaviour
(ADMIN) (Console) added userid STEAM_0:1:12783335 (Smoot) to group "privatefirstclass"

This is very strange.
Title: Re: ASpam
Post by: Smoot178 on August 01, 2008, 12:13:10 PM
Is this a rented server, do you have access to the server console directly? If so do you get any errors? Because it's kinda strange that it just quit working after just adding superadmin and admin =/
Not much is different from this post:
This is very strange.

Rented server.
Title: Re: ASpam
Post by: jay209015 on August 01, 2008, 12:56:24 PM
Dang, did you add any new addons between the time it was working and wasn't?
Title: Re: ASpam
Post by: Smoot178 on August 02, 2008, 11:23:50 PM
Dang, did you add any new addons between the time it was working and wasn't?


Let's retrace our steps.

The promotions were working in the beginning.  That's a clean aspam install.  The only problems I had was the fact that it "promoted" moderators, admins, and superadmins as if they were users to the second ranking group.

Your fixes for this have made the whole thing not work at all.
Title: Re: ASpam
Post by: jay209015 on August 03, 2008, 10:20:08 AM
that is strange, since the only changes we made was to the table itself =/
Title: Re: ASpam
Post by: Smoot178 on August 04, 2008, 03:07:52 PM
that is strange, since the only changes we made was to the table itself =/

Could you give me a fresh version of the script that will filter out admins superadmins and moderators?
Title: Re: ASpam
Post by: jay209015 on August 04, 2008, 04:06:55 PM
I added an option "None" to the promote_to table. This should work.

Title: Re: ASpam
Post by: jay209015 on August 07, 2008, 06:27:59 PM
V1.9
     - Promotions are no longer supported by this script, I will be making a better version soon!

New Dowloads posted.
Title: Re: ASpam
Post by: nofear1999 on August 07, 2008, 07:02:57 PM
Looks like a pile of awesome. I'll try her out! :)
:\ May be a him :o anyways NIce work as usual jay :)
Title: Re: ASpam
Post by: jay209015 on August 07, 2008, 07:11:37 PM
Thank you!
Title: Re: ASpam
Post by: nofear1999 on August 07, 2008, 08:08:05 PM
I added it onto my server im testing it out right now ;)
Title: Re: ASpam
Post by: Smoot178 on August 08, 2008, 06:51:41 AM
V1.9
     - Promotions are no longer supported by this script, I will be making a better version soon!

New Dowloads posted.





Nooooooooooo.  It works now btw.  LOL.  I will still get the new promotions system! 

Could I make a suggestion?
I would like some sort of ingame GUI where I can check the status of each player and the different promotional groups. 

Also, you should be able to set the time it takes to promote from one group to another.  Say User -> Respected takes 5 hours and Respected -> Regular takes 17 hours.  You should also be able to change this on the fly ingame using the menu :P
Title: Re: ASpam
Post by: jay209015 on August 08, 2008, 07:52:06 AM
Suggestions noted, and as for the way the users were promoted previously; the were promoted by this formula:

time = time - (warning * penalty )
time > (interval * (#goups_to_promote - (#groups_to_promote + 1)))

I'm too tired to think too much right now, but I'm pretty sure that's how it's coded.
Title: Re: ASpam
Post by: Chief_runningwater on August 09, 2008, 11:31:38 AM
Is there any way of disabling the promotion thing I don't want people being promoted and I don't know lua at all...
Title: Re: ASpam
Post by: jay209015 on August 09, 2008, 12:12:51 PM
Quote
V1.9
     - Promotions are no longer supported by this script, I will be making a better version soon!

New Dowloads posted.

The Promotions have been removed, just if you have ASpam previously installed delete the original ASpam folder, and replace with v1.9
Title: Re: ASpam
Post by: Gunner71 on September 22, 2008, 06:54:09 PM
instead of kicking people who spawn an adv dup over 10 seconds, why not just delete the dup they were spawning and give them a warning message? like "Please do not spawn dups that large."

Also can you add stacker support like if they try to stack over 10 props it will add a warning level and give them a warning
Title: Re: ASpam
Post by: jay209015 on September 22, 2008, 07:24:17 PM
Quote
instead of kicking people who spawn an adv dup over 10 seconds, why not just delete the dup they were spawning and give them a warning message? like "Please do not spawn dups that large."
     -This would require a re-work of the entire code, and atm I'm working on a few more releases.
Quote
Also can you add stacker support like if they try to stack over 10 props it will add a warning level and give them a warning
     -I've thought about this, but it is also another thing that would require alot of change to the existing code to get it working.
Title: Re: ASpam
Post by: NikolaiResokav on September 25, 2008, 07:00:01 PM
Is there any way to make admins immune to the spam kicker?
Title: Re: ASpam
Post by: jay209015 on October 02, 2008, 05:33:29 AM
I will work on adding this feature tonight, unless someone wants to take up the job?
Title: Re: ASpam
Post by: DiscoBiscuit on December 18, 2008, 06:07:40 PM
When I tossed this into my server, someone convieniantly spammed, and when the warnings got to 10 it just started cleaning his crap up over and over and the number left went into the negatives  ???
Is there any way to make it kick them instead?
Title: Re: ASpam
Post by: jay209015 on December 18, 2008, 07:02:27 PM
It does kick them if you have ULX, ULib, and ASpam installed properly.
Title: Re: ASpam
Post by: Hardy on December 18, 2008, 10:52:14 PM
It does that before latest gmod update(50)(i think it is why), now it doesn't...
Title: Re: ASpam
Post by: jay209015 on December 19, 2008, 05:35:35 AM
The update shouldn't of been able to do anything to it, since it uses the ULib.kick() function milliseconds after removing their props.
Title: Re: ASpam
Post by: Hardy on January 04, 2009, 05:36:00 AM
Rly? Maybe you check it out?

Code: [Select]
(Console) to admins: Player hardy is spamming, and has a warn level of 5. Kicking them after 5 more warnings
hardy<STEAM_0:0:12673821> spawned model models/props_borealis/bluebarrel001.mdl
You must wait 0.3 second(s) before spawning another prop/ent
If you continue to Spam, you will be kicked!
(Console) to admins: Player hardy is spamming, and has a warn level of 6. Kicking them after 4 more warnings
hardy<STEAM_0:0:12673821> spawned model models/props_borealis/bluebarrel001.mdl
You must wait 0.3 second(s) before spawning another prop/ent
If you continue to Spam, you will be kicked!
(Console) to admins: Player hardy is spamming, and has a warn level of 7. Kicking them after 3 more warnings
hardy<STEAM_0:0:12673821> spawned model models/props_borealis/bluebarrel001.mdl
hardy<STEAM_0:0:12673821> spawned model models/props_borealis/bluebarrel001.mdl
hardy<STEAM_0:0:12673821> spawned model models/props_borealis/bluebarrel001.mdl
You must wait 0.3 second(s) before spawning another prop/ent
If you continue to Spam, you will be kicked!
(Console) to admins: Player hardy is spamming, and has a warn level of 8. Kicking them after 2 more warnings
hardy<STEAM_0:0:12673821> spawned model models/props_borealis/bluebarrel001.mdl
You must wait 0.3 second(s) before spawning another prop/ent
If you continue to Spam, you will be kicked!
You must wait 0.3 second(s) before spawning another prop/ent
If you continue to Spam, you will be kicked!
hardy's props have been cleaned up
(Console) to admins: Player hardy is spamming, and has a warn level of 9. Kicking them after 1 more warnings
(Console) to admins: Player hardy is spamming, and has a warn level of 10. Kicking them after 0 more warnings
player hardy's props have been removed
hardy<STEAM_0:0:12673821> spawned model models/props_borealis/bluebarrel001.mdl
hardy<STEAM_0:0:12673821> spawned model models/props_borealis/bluebarrel001.mdl
You must wait 0.3 second(s) before spawning another prop/ent
If you continue to Spam, you will be kicked!
hardy's props have been cleaned up
(Console) to admins: Player hardy is spamming, and has a warn level of 11. Kicking them after -1 more warnings
player hardy's props have been removed
all cleaned
hardy<STEAM_0:0:12673821> spawned model models/props_borealis/bluebarrel001.mdl
You must wait 0.3 second(s) before spawning another prop/ent
If you continue to Spam, you will be kicked!
hardy's props have been cleaned up
(Console) to admins: Player hardy is spamming, and has a warn level of 12. Kicking them after -2 more warnings
player hardy's props have been removed
all cleaned
all cleaned
hardy<STEAM_0:0:12673821> spawned model models/props_borealis/bluebarrel001.mdl
You must wait 0.3 second(s) before spawning another prop/ent
If you continue to Spam, you will be kicked!
hardy's props have been cleaned up
(Console) to admins: Player hardy is spamming, and has a warn level of 13. Kicking them after -3 more warnings
player hardy's props have been removed
hardy<STEAM_0:0:12673821> spawned model models/props_borealis/bluebarrel001.mdl
You must wait 0.3 second(s) before spawning another prop/ent
If you continue to Spam, you will be kicked!
hardy's props have been cleaned up
(Console) to admins: Player hardy is spamming, and has a warn level of 14. Kicking them after -4 more warnings
player hardy's props have been removed
all cleaned
all cleaned
Title: Re: ASpam
Post by: jay209015 on January 04, 2009, 03:46:56 PM
You must have another addon that is hindering the script, cause I've tested it with all the common ones and it still works.
Title: Re: ASpam
Post by: JamminR on January 04, 2009, 04:01:35 PM
Jay, he's having problems with UPS too. I'm definitely leaning towards his issue being addon conflict.
However, could either be affecting the other? That is, could ASpam be preventing UPS from working or perhaps vice versa.
Title: Re: ASpam
Post by: jay209015 on January 04, 2009, 07:42:22 PM
No, infact ASpam is designed to use UPS :D
Title: Re: ASpam
Post by: jdjesse on January 05, 2009, 02:10:09 PM
I had this problem also. It was giving - levels.
Title: Re: ASpam
Post by: Nuclear_Ice on January 10, 2009, 06:32:30 PM
I flippin love this! But how can I make it so it doesn't affect admins? lol
Title: Re: ASpam
Post by: Cephalexin on January 27, 2009, 02:17:41 AM
I have had the same problem to where it will not kick
Title: Re: ASpam
Post by: Darksoul on January 27, 2009, 07:22:46 AM
Won't kick. It's likely a easy fix though.
Title: Re: ASpam
Post by: Alex on January 28, 2009, 08:26:41 PM
Please fix this! Me wantz.  :'(
Title: Re: ASpam
Post by: Alex on January 28, 2009, 08:48:26 PM
Actually, can someone give me the LUA kick command. I'll fix it myself. ;)
Title: Re: ASpam
Post by: jay209015 on January 28, 2009, 10:19:10 PM
Ok, updated, added 3 different ways for it to kick the person. Hopefully that'll work, if now I'll change to something else.
Title: Re: ASpam
Post by: Alex on January 28, 2009, 11:35:20 PM
Argh still doesn't work!  :'(
But look what I found in console:
Code: [Select]
game.ConsoleCommand blocked!
Any help?
Title: Re: ASpam
Post by: Alex on January 29, 2009, 09:43:15 AM
Ok I got another LUA error.

Startup:
Code: [Select]
autorun/cl_ASpaminit.lua:3: attempt to call global 'LocalPlayer' (a nil value)

Kicking:
Code: [Select]
game.ConsoleCommand blocked!
Jay?
Title: Re: ASpam
Post by: jay209015 on January 29, 2009, 12:06:18 PM
- Can't do anything about the LocalPlayer error, that's all garry, but hopefully it kicks now. If
                        not you have conflicting addons, because it's working fine for me.
Title: Re: ASpam
Post by: Alex on January 29, 2009, 05:11:38 PM
@#%!*^ still doesn't kick. :(
I get this:
Code: [Select]
game.ConsoleCommand blocked!
If it's too hard just modify it so it doesn't kick and it just deletes the props.
Title: Re: ASpam
Post by: jay209015 on January 29, 2009, 05:28:09 PM
for it to delete props, all you need is either UPS, and SPP installed. As for the kicking, I have to find a way around garrys new blocks.
Title: Re: ASpam
Post by: Alex on January 29, 2009, 05:38:55 PM
It deletes props just doesn't kick.
Title: Re: ASpam
Post by: jay209015 on January 29, 2009, 05:42:03 PM
Ok, I'll have to figure something out then, because console commands are apparently blocked by garry now, so just give me some time.
Title: Re: ASpam
Post by: Alex on January 29, 2009, 06:01:03 PM
Ok, thank you very much!
Title: Re: ASpam
Post by: Alex on January 30, 2009, 08:30:22 PM
I'm not sure if you have tried this or not (I don't know LUA) but I believe there is a kick command you can use.

Code: [Select]
kick ((name here))
If it helps this is entered in console.
Title: Re: ASpam
Post by: Darksoul on March 24, 2009, 07:46:46 PM
Can someone please fix the kick function (And I am sorry for the huge bump/revive)

Quote
...???????...?'s props have been cleaned up
(Console) to admins: Player ...                      ...     is spamming, and has a warn level of 58. Kicking them after -48 more warnings
player ...                      ...    's props have been removed
Title: Re: ASpam
Post by: Hardy on April 02, 2009, 01:20:19 PM
Working kick function(in ASpam.lua)
Code: [Select]
function Spammer_Kick( ply )
if ply.warn >= Warn_Player then
ply:PrintMessage(HUD_PRINTTALK, "If you continue to Spam, you will be kicked!")
Warn_Left = Max_Warn - ply.warn
game.ConsoleCommand( "ulx asay Player " ..ply:Nick().. " is spamming, and has a warn level of " ..ply.warn.. ". Kicking them after " ..Warn_Left.. " more warnings \n")
end
if ply.warn >= Max_Warn then
if SPropProtection then
SPropProtection.DRemove( ply:SteamID(), ply:Nick() )
end
if UPS then
UPS.deleteAll( ply:UniqueID(), true )
end
game.ConsoleCommand("kickid "..ply:UserID().." \"Spamming!\" \n")
end
end
Title: Re: ASpam
Post by: Darksoul on April 03, 2009, 07:22:42 AM
Thank you, I had just looked at the code before opening up this site and saw this:

//ULib.kick(ply, "Quit Spamming")

..what?. :D.
Title: Re: ASpam
Post by: iExiledSniper on April 10, 2009, 11:03:27 AM
You need to make it ignore admins if it doesn't already.. I'm admin on a server that uses this and I like to build fast, which gets my props cleaned up and me kicked. -_-
Title: Re: ASpam
Post by: xikkub on April 17, 2009, 10:25:26 PM
Quote
You need to make it ignore admins if it doesn't already.. I'm admin on a server that uses this and I like to build fast, which gets my props cleaned up and me kicked. -_-

Edit the configuration file so that the prop delay time is longer. -.-

I saw the above fix, but it would be possible to do a general "ulx kick ply" through the commands so you don't need to use garry's junky method.
Title: Re: ASpam
Post by: Ninjadude101 on May 30, 2009, 08:37:43 PM
The download doesn't work, but after replacing one function (Really only deleting 2 lines and changing another, to use a way round garry's command blocks) I had the script going.

Unfortunately, even after changing the values from 0.3 to 0.1 for example, it throws people out of my server for many of the wrong reasons, mostly false positives. It seems the stacker tool can cause a kick, as can the duplicator or advanced duplicator sometimes. Its a nice thought but since this addon does not currently work as intended I shall be removing this from my server. Thanks for writing it though :)

Also I had changed it from kicking them to banning them through sourcebans for a week, so as you can imagine, many false positives isn't a good thing, hah.
Title: Re: ASpam
Post by: Jethro on July 08, 2009, 03:57:50 PM
Until the author comes back and until someone is able to give this awesome script a propper makeover I have quickly uploaded a working version.
The HUD doesn't display due to an error but I have made it ban a player for 360 mins (changebale).

Hope this helps for some people but this script still needs a lot of work done to refine it.

Jethro
Title: Re: ASpam
Post by: Cashoo on July 11, 2009, 05:45:50 AM
Does this apply to spawning wire gates?
Title: Re: ASpam
Post by: JackBauer on July 13, 2009, 04:16:31 AM
need download link all download links down
Title: Re: ASpam
Post by: Jethro on July 13, 2009, 08:12:22 AM
Does this apply to spawning wire gates?
I don't know; try it.
Still many errors that need to be addressed and the HUD doesn't even work now... Hopefully someone will be able to fix this mod; only Anti spam mod available.
need download link all download links down
Links work for me =/
Title: Re: ASpam
Post by: Jethro on July 21, 2009, 07:00:23 AM
Hey Jay
Do you know if/when you would be able to get this script working with the HUD? It’s the only good Anti-Spam script available and of course Garry broke it. It would be brilliant to have this working without any errors if you have time.

Thanks
Jethro

 :P
Title: Re: ASpam
Post by: jay209015 on July 21, 2009, 10:53:22 AM
Changes:
     Fixed Kick Function
     No more timer on client side, only updates as need (less lag)
     Modified the way the server handles monitoring props spawned
     Added Admin_Immune option
     Even if by some chance garry breaks the kick function again, players are not allow to spawn props once the warning level is above the set max
     Now the only way to have the server to automatically remove props is to have UPS installed.

I know it's not perfect, but it's a start, enjoy!
     --Jay209015
Title: Re: ASpam
Post by: Jethro on July 21, 2009, 12:46:43 PM
Thankyou Thankyou Thankyou XD
 :-*
Title: Re: ASpam
Post by: owned on July 22, 2009, 10:30:00 AM
W00t! Thanks Man!! was trying to find a way to make admin immune from it :P thank you!
Title: Re: ASpam
Post by: Euphytose on August 02, 2009, 04:14:53 PM
I would like to install this plugin, but last time I did it, I had problems with stacker/adv_dup/duplicator.

Because people wanted to duplicate some big constructions and before they could have ended the duplication, they were getting kicked, same with stacker.

Ok it works well, but I just want one thing. Could you move the emplacement of the overlay somewhere else? It's really annoying because of UTime, players can't see their time if they stay at the default position for UTime, and I guess there are noobs who don't know how to move it.
Title: Re: ASpam
Post by: Euphytose on August 06, 2009, 01:48:56 PM
It seems that props no more delete by themselves after a certain time, due to this plugin.  :-\
Title: Re: ASpam
Post by: Jethro on August 06, 2009, 04:27:52 PM
It seems that props no more delete by themselves after a certain time, due to this plugin.  :-\

You mean the script doesnt delete a users props after they are kicked?
Title: Re: ASpam
Post by: Euphytose on August 06, 2009, 06:42:53 PM
You mean the script doesnt delete a users props after they are kicked?

Nope, this works.

But now, after a certain time, set with UPS, the props are not deleted, I think it's a conflict with ASpam, which uses UPS to remove the props.
Title: Re: ASpam
Post by: Jethro on August 07, 2009, 08:01:26 AM
Nope, this works.

But now, after a certain time, set with UPS, the props are not deleted, I think it's a conflict with ASpam, which uses UPS to remove the props.

I too have noticed this but thought it was a UPS problem. Hope someone is able to fix it :p
Title: Re: ASpam
Post by: Euphytose on August 08, 2009, 10:43:03 AM
I had to remove ASpam, my server was filled with minges creations and was always crashing due to them.  :-\
Title: Re: ASpam
Post by: jay209015 on August 08, 2009, 06:30:51 PM
ok, sorry to hear that, but removing ASpam will not stop minges from making their creations lol.
Title: Re: ASpam
Post by: Euphytose on August 08, 2009, 06:33:51 PM
ok, sorry to hear that, but removing ASpam will not stop minges from making their creations lol.

I lol'd.  ;D

I meant, they didn't disappear, and minges creations are... You know, really... " Mingy ". :)

Seriously, could you fix that? Your plugin is really needed against minges, but having creations that don't disappear after a set time is unacceptable.
Title: Re: ASpam
Post by: jay209015 on November 14, 2009, 11:35:42 AM
UPDATED!!!!
Title: Re: ASpam
Post by: yomogimochi on February 11, 2010, 02:33:31 AM
Hello! Nice Addon.
I would like to request a ban feature.
If after a user is kicked three times, auto ban for 60 minutes?
Title: Re: ASpam
Post by: yomogimochi on March 08, 2010, 08:44:16 AM
http://www.youtube.com/watch?v=VGv5-w7XmEo

I'm Edit Aspam.
Title: Re: ASpam
Post by: jay209015 on March 08, 2010, 06:07:14 PM
Nice yomogimochi!
Title: Re: ASpam
Post by: someone920 on March 20, 2010, 09:53:02 AM
I'm not sure if this was ASpam, but when someone gets 10 warnings, and they get kicked, when they come back, the server crashes. Is the server suppose to let the person back in? or does it kick them again?
Title: Re: ASpam
Post by: jay209015 on March 20, 2010, 04:40:16 PM
ASpam should let them back in unless you've modded it to do otherwise.
Title: Re: ASpam
Post by: Aaron113 on April 01, 2010, 04:16:37 PM
I found a small glitch.  If you are waiting in line because someone else is using the dup when you try it starts the timer even though your dup is not spawning.  It should wait till you spawn your first prop or somehow check to see if your dup has started yet.
Title: Re: ASpam
Post by: jay209015 on April 01, 2010, 11:06:31 PM
I'll take a look at it, but no promises. I'm pretty short on free time.
Title: Re: ASpam
Post by: Aaron113 on April 02, 2010, 02:00:39 PM
It also seems to just completely stop working, I am not 100% sure why but it just randomly stops.

Edit:  I'm not sure about the stop working anymore,  I'll keep an eye out for it.
Title: Re: ASpam
Post by: jay209015 on April 10, 2010, 04:07:14 PM
Just to update everyone who is interested. I have found a way to fix the duplicating problems the way I originally intended the script to work. Just have a few more tests, and should be releasing later tonight.

New Features:
Code: [Select]
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)

Comments speak for themselves.
Thanks for your interest.
Title: Re: ASpam
Post by: jay209015 on April 10, 2010, 10:37:41 PM
As promised, ASpam has been updated to V2.2.
Title: Re: ASpam
Post by: Aaron113 on April 17, 2010, 08:15:09 PM
As promised, ASpam has been updated to V2.2.
K but the readme is wrong now, the configurations are in a different folder from which it says.  Not really that bad but just letting you know.

And can you do this with the dlist:
Code: [Select]
local dlist = {
"crane_frame.mdl"
"models/props_phx/ball.mdl"
"models/props_phx/oildrum001_explosive.mdl"
"models/props_phx/mk-82.mdl"
}

It would be much easier to add and know what is already in the dlist.
Title: Re: ASpam
Post by: jay209015 on April 18, 2010, 01:06:47 AM
Thanks, and yes to your question, you just have to separate each item with a comma.

like so:
Code: [Select]
local dlist = {
"crane_frame.mdl",
"models/props_phx/ball.mdl",
"models/props_phx/oildrum001_explosive.mdl",
"models/props_phx/mk-82.mdl"
}
Title: Re: ASpam
Post by: Aaron113 on April 18, 2010, 12:27:40 PM
Thanks again, and could you maybe add some sort of a immune command.  This way we could make certain user groups or even just certain users immune to the spam protection.  Some people on my server find it very annoying and I trust the ones that do.
Title: Re: ASpam
Post by: jay209015 on April 18, 2010, 08:54:58 PM
Thanks again, and could you maybe add some sort of a immune command.  This way we could make certain user groups or even just certain users immune to the spam protection.  Some people on my server find it very annoying and I trust the ones that do.
     - Done, see main post.
Title: Re: ASpam
Post by: men232 on November 30, 2010, 09:19:47 AM
     - Done, see main post.
Hi everyone! After updating Aspam, I do not see more panel Warning LvL Please help me ! Sorry for my bad english !
Title: Re: ASpam
Post by: michael_sj123 on December 21, 2010, 08:39:14 AM
Does this still work?
Title: Re: ASpam
Post by: LuaTenshi on May 06, 2011, 03:26:14 PM
Well this topic is dead... but apparently ASpam does not work anymore, so I would like to see a fix in the future.
Title: Re: ASpam
Post by: jay209015 on May 09, 2011, 11:58:37 AM
I do not believe ASpam is working with current versions. I no longer support it.
Title: Re: ASpam
Post by: michael_sj123 on May 17, 2011, 06:35:13 AM
Could someone pleaaaaase fix this up and make it work for the latest Gmod releases? This is the best addon ever, stopped all my server crashes when it was working
Title: Re: ASpam
Post by: krooks on May 17, 2011, 10:40:28 AM
I know this is the ULX boards, and we don't like to stray, but for some of the dead projects the best us non-lua people can do is find another solution (at least for the meantime). FPP (http://www.facepunch.com/threads/786522-FPP-Falco-s-Prop-Protection-and-anti-spam) has a nice system of stopping spam, although I've also found it to lag the server when people spawn from ADV, Dup. So consequently I have disabled that function of FPP.

Honestly your very best option is to find a good group of trusted admins. This is what I personally rely on, and when someone is in my server, there is more than likely always an admin there.
Title: Re: ASpam
Post by: jay209015 on May 17, 2011, 10:45:32 AM
I do appreciate the interest in this addon, and I do feel bad for dropping support. My issue at the moment is that I don't have a pc to develop on for garrysmod. All I have is a minimal linux box for developing web applications.

If I had a machine I would pick this back up and come back into the community with updates and addons, but I simply cannot at this moment.
Title: Re: ASpam
Post by: krooks on May 17, 2011, 11:49:25 PM
All I have is a minimal linux box for developing web applications.

In other words, Jay knows where the money is!  ;D
Don't blame ya!