Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
spraying in ttt server
#21
Hi, here is a very small little useful part of lua code that will disable the spray feature for anyone that isn't a superadmin on the server. 

Code:
hook.Add( "PlayerSpray", "DisablePlayerSpray", function( ply )
    return not ply:IsAdmin()
end )

Here is a link to the original post on the facepunch wiki. Perhaps this should be considered to be added? I know sprays are scary (serious) and loopholes/exploits are even scaryer lmao. I hope this helps  :D


For anyone that wants to try it on a test server the code just goes in a lua file in the addons folder then make a new folder with any name then make a folder within that new folder named "lua" then make a folder in that named "autorun" then make a txt file and name it anything then open it and paste the code and go to file and click save as and change the file type to all and in the file name box change that to whateveryouwant.lua and save it and that's all. I'm bad at explaining shit but yk it's easy I promise.
[Image: 955ef7a32696f2e506ea3319fcb5017a.png][Image: Banned-Gravity-Small.jpg]
Resigned prop hunt trusted 4/16/2021 - 1/1/2022 <3


Messages In This Thread
spraying in ttt server - by degen(erate_69) - 07-22-2021, 01:58 PM
RE: spraying in ttt server - by degen(erate_69) - 07-22-2021, 02:01 PM
RE: spraying in ttt server - by Jammin - 07-22-2021, 02:07 PM
RE: spraying in ttt server - by HONG - 07-22-2021, 02:16 PM
RE: spraying in ttt server - by poop cobbage - 07-22-2021, 02:20 PM
RE: spraying in ttt server - by NotRand - 07-22-2021, 08:53 PM
RE: spraying in ttt server - by degen(erate_69) - 07-22-2021, 02:30 PM
RE: spraying in ttt server - by poop cobbage - 07-22-2021, 03:38 PM
RE: spraying in ttt server - by happy :p - 07-22-2021, 04:00 PM
RE: spraying in ttt server - by degen(erate_69) - 07-22-2021, 04:26 PM
RE: spraying in ttt server - by Ethan - 07-22-2021, 05:25 PM
RE: spraying in ttt server - by RussEfarmer - 07-22-2021, 05:45 PM
RE: spraying in ttt server - by degen(erate_69) - 07-22-2021, 08:06 PM
RE: spraying in ttt server - by Jammin - 07-22-2021, 09:13 PM
RE: spraying in ttt server - by HONG - 07-23-2021, 12:33 AM
RE: spraying in ttt server - by degen(erate_69) - 07-22-2021, 10:07 PM
RE: spraying in ttt server - by Caribou - 07-23-2021, 04:31 AM
RE: spraying in ttt server - by LemonTiara - 07-24-2021, 08:19 PM
RE: spraying in ttt server - by Damien - 07-25-2021, 10:19 AM
RE: spraying in ttt server - by Here lies Eggroll's reputation. - 07-25-2021, 10:40 AM
RE: spraying in ttt server - by RussEfarmer - 07-25-2021, 11:41 AM
RE: spraying in ttt server - by CloudySkies - 07-25-2021, 04:13 PM
RE: spraying in ttt server - by Damien - 07-25-2021, 04:52 PM
RE: spraying in ttt server - by RussEfarmer - 07-25-2021, 08:24 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)

About Us
    This is Dinkleberg's GMod, a gaming community based in Garry's Mod. We have a Trouble in Terrorist Town, Prop Hunt, Murder, and Deathrun Server. Come check them out sometime.