• Disable creator tool? Or for superadmin only?
    11 replies, posted
Hello there! When I got my server up, and people joined.. they started to spawn stuff with the creator tool, and I can't find anyway to disable this! If you could help me, please do it! I need a code or maybe just an addon to disable it! Help! :3
[code] if not This then print("Hello") end [/code] There is some code... *cough* [url]http://facepunch.com/showthread.php?t=1228058&p=38587125&viewfull=1#post38587125[/url] ^Post #9 *cough*
[QUOTE=Pandaman09;39702471][code] if not This then print("Hello") end [/code] There is some code... *cough* [url]http://facepunch.com/showthread.php?t=1228058&p=38587125&viewfull=1#post38587125[/url] ^Post #9 *cough*[/QUOTE] Thx, but I don't really get what I should put there and how to disable it to no one? :P [editline]edit[/editline] Oh, and where should I put this to get it working? [lua] function ws_dupe:DownloadAndArm( id ) print("Spawning dupes from the workshop has been disabled. You can still spawn your own saved dupes.") end [/lua]
If you read the post it tells you...
[QUOTE=Pandaman09;39702517]If you read the post it tells you...[/QUOTE] Oh, missed that! Thanks! But I would really like to disable creator tool, I don't get how other server can disable this.. lol :3
Ah wait thats the workshop duplicator not the creator :P oops [editline]24th February 2013[/editline] I might have found a way, but i'm not sure if it will work. Go to garrysmod\gamemodes\sandbox\entities\weapons\gmod_tool\stools\ and open creator.lua on line 16 add [code] if not self:GetOwner():IsAdmin() or not self:GetOwner():IsSuperAdmin() then return end [/code] so it should look like [code] function TOOL:LeftClick( trace, attach ) if not self:GetOwner():IsAdmin() or not self:GetOwner():IsSuperAdmin() then return end local type = self:GetClientNumber( "type", 0 ) local name = self:GetClientInfo( "name", 0 ) local arg = self:GetClientInfo( "arg", 0 ) [/code] It may or may not work.
[QUOTE=Pandaman09;39702611]Ah wait thats the workshop duplicator not the creator :P oops [editline]24th February 2013[/editline] I might have found a way, but i'm not sure if it will work. Go to garrysmod\gamemodes\sandbox\entities\weapons\gmod_tool\stools\ and open creator.lua on line 16 add [code] if not self:GetOwner():IsAdmin() or not self:GetOwner():IsSuperAdmin() then return end [/code] so it should look like [code] function TOOL:LeftClick( trace, attach ) if not self:GetOwner():IsAdmin() or not self:GetOwner():IsSuperAdmin() then return end local type = self:GetClientNumber( "type", 0 ) local name = self:GetClientInfo( "name", 0 ) local arg = self:GetClientInfo( "arg", 0 ) [/code] It may or may not work.[/QUOTE] Oh, thank you.
toolmode_allow_creator 0
I really hope it's not that easy >.>
[QUOTE=rokrox;39712214]toolmode_allow_creator 0[/QUOTE] Really.. O_O Anyway, I fixed it now with Pandaman09's code :D
[QUOTE=addemod;39720744]Really.. O_O Anyway, I fixed it now with Pandaman09's code :D[/QUOTE] Yes, but you'll have to re-implement his changes every update.
[QUOTE=rokrox;39722082]Yes, but you'll have to re-implement his changes every update.[/QUOTE] Oh, lol..
Sorry, you need to Log In to post a reply to this thread.