Recent Posts

Pages: [1] 2 3 ... 10
1
General Chat & Help and Support / Re: Save location of settings
« Last post by Chriss on April 11, 2021, 07:44:23 AM »
Ahh yes it was sv.db, the folders in /data only store things like bans and groups. Thanks so much!
2
General Chat & Help and Support / Re: Save location of settings
« Last post by JamminR on April 09, 2021, 09:10:19 PM »
Have you looked where Gmod addons store much information? :)
\data\
sv.db too.
3
General Chat & Help and Support / Save location of settings
« Last post by Chriss on April 09, 2021, 09:17:46 AM »
Hi, some setting you can change in the ulx menu persist and now that i want to move my server to a new machine i would like to take the config with it but i cant for the life of me find where ulx saves all the settings. Is that possible?
4
General Chat & Help and Support / Re: PropProtection.lua for Garry's Mod 9?
« Last post by MrPresident on April 01, 2021, 01:14:03 PM »
Garry's Mod 9? You're about 13 years late to the party...
I don't know anyone who develops for gmod9
5
General Chat & Help and Support / PropProtection.lua for Garry's Mod 9?
« Last post by cj_beans on March 30, 2021, 07:29:04 AM »
Hello.
I have been attempting to search for proprotection.lua for GMod 9, as I run a server and want to prevent griefing. I haven't really been able to find it anywhere.
Please help! Thank you.
6
Releases / Re: Give Weapon Addon [1.08v]
« Last post by PSYCHO on February 26, 2021, 06:47:04 PM »
Thanks brother!
7
Suggestions / Re: Auto-add to usergroup based on kick/banned.
« Last post by MrPresident on January 27, 2021, 08:56:47 AM »
no, that's not how hooks are used. Please find some tutorials on gmod lua hooks and read up on them.
If you still need help, I would suggest joining our discord and asking for help there. Plenty of people there would would be willing to assist you and we check that more than these forums these days.
8
Developers Corner / Re: Allow server console to run admin command
« Last post by MrPresident on January 25, 2021, 07:47:52 AM »
simply check to see if ply is valid

if ply:IsValid() is nil.. then it's the server console.
9
Developers Corner / Allow server console to run admin command
« Last post by Doomed on January 23, 2021, 12:57:52 PM »
Hey guys, im trying to make it so the following console command can be executed from the server console:

Code: [Select]
if (SERVER) then

function Kick( ply, cmd, args )

if !ply:IsUserGroup("moderator") and !ply:IsAdmin() and !ply:IsSuperAdmin() then return false end

local target = findplayer(args[1])
local reason = tostring(args[2])

target:Kick(reason)

end

end
concommand.Add("a_kick", Kick)

Now i made it so it checks to make sure the player is at least a moderator to run the command, but how would i go about making it so the command can be executed from the server console, since there wouldnt be a valid player sending the command in that case. I thought about using IsValid, but would that pose any security risks? (as in, is there a situation where someone could make their player entity invalid in order to run this command?)
10
Suggestions / Re: Auto-add to usergroup based on kick/banned.
« Last post by jut on January 13, 2021, 06:16:33 AM »
Would this work?
Code: [Select]
function ULib.ban( ply )
    if ULib.addBan( ply:SteamID() ) then
      ucl.addUser( ply:SteamID(), "probationary")
    end
end
 

Thank you for your help!
Pages: [1] 2 3 ... 10