07-25-2021, 10:40 AM
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.
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.
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.
Resigned prop hunt trusted 4/16/2021 - 1/1/2022 <3