Ulysses Stuff > Ulysses Release Archives

ASpam

<< < (21/30) > >>

Alex:
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: ---kick ((name here))
--- End code ---

If it helps this is entered in console.

Darksoul:
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

--- End quote ---

Hardy:
Working kick function(in ASpam.lua)

--- Code: ---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

--- End code ---

Darksoul:
Thank you, I had just looked at the code before opening up this site and saw this:

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

..what?. :D.

iExiledSniper:
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. -_-

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version