Author Topic: ASpam  (Read 77292 times)

0 Members and 3 Guests are viewing this topic.

Offline Alex

  • Newbie
  • *
  • Posts: 33
  • Karma: 1
Re: ASpam
« Reply #90 on: January 28, 2009, 08:48:26 PM »
Actually, can someone give me the LUA kick command. I'll fix it myself. ;)
:) Alex T. :)

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: ASpam
« Reply #91 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.
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 Alex

  • Newbie
  • *
  • Posts: 33
  • Karma: 1
Re: ASpam
« Reply #92 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?
:) Alex T. :)

Offline Alex

  • Newbie
  • *
  • Posts: 33
  • Karma: 1
Re: ASpam
« Reply #93 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?
:) Alex T. :)

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: ASpam
« Reply #94 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.
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 Alex

  • Newbie
  • *
  • Posts: 33
  • Karma: 1
Re: ASpam
« Reply #95 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.
:) Alex T. :)

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: ASpam
« Reply #96 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.
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 Alex

  • Newbie
  • *
  • Posts: 33
  • Karma: 1
Re: ASpam
« Reply #97 on: January 29, 2009, 05:38:55 PM »
It deletes props just doesn't kick.
:) Alex T. :)

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: ASpam
« Reply #98 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.
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 Alex

  • Newbie
  • *
  • Posts: 33
  • Karma: 1
Re: ASpam
« Reply #99 on: January 29, 2009, 06:01:03 PM »
Ok, thank you very much!
:) Alex T. :)

Offline Alex

  • Newbie
  • *
  • Posts: 33
  • Karma: 1
Re: ASpam
« Reply #100 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.
:) Alex T. :)

Offline Darksoul

  • Newbie
  • *
  • Posts: 33
  • Karma: -1
Re: ASpam
« Reply #101 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

Offline Hardy

  • Newbie
  • *
  • Posts: 42
  • Karma: 0
Re: ASpam
« Reply #102 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

Offline Darksoul

  • Newbie
  • *
  • Posts: 33
  • Karma: -1
Re: ASpam
« Reply #103 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.

Offline iExiledSniper

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: ASpam
« Reply #104 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. -_-