Yeah, you'd probably want to disable pasting, instead sending a message to the user saying that advdupe is only there to download their structures.
Hey there, just wondering if its possible to make Adv Dupe save only on a server?
I've looked through the server file, and found:
'local MaxUploadSize = 0 --per player. -1 disable, 0 no limit, >0 K characers allowed (K = 1024). allows up to (MaxUploadLength - 1) charcters over this limit.,'
Which I guess would stop people uploading if set to -1, but I suppose they could still load things they've just saved.
This is for a Stranded server, so we'd like to allow players the ability to save things they're proud of, to store in single player. Is there an easy way of changing this, or would this involve lua mangling?
Thanks for any help guys, its appreciated.
Yeah, you'd probably want to disable pasting, instead sending a message to the user saying that advdupe is only there to download their structures.
Any idea how I'd go about disabling it? Is it just a variable, or something more?
Right, go to Adv Duplicator\lua\weapons\gmod_tool\stools\adv_duplic ator.lua and open it up. Delete the TOOL:LeftClick() function and replace it with:
Code:function TOOL:LeftClick( trace ) if(CLIENT) then return false end ply:PrintMessage(HUD_PRINTTALK, "You cannot paste here, you can only save it and download it.") end
Perfect, thanks you very much, everyone at TT Stranded will thank you![]()
Hmmm... Seems to almost have it, I'm getting:
'weapons\gmod_tool\stools/adv_duplicator.lua:52: attempt to index global 'ply' (a nil value)'
in console on left click atm. Line 52 is the start of the code you gave me. It stops the left click, but instead of a printed message, just console spams. Any ideas
Edit: It works fine by dropping out the 'ply:PrintMessage(HUD_PRINTTALK, "You cannot paste here, you can only save it and download it.")'' line, but I would rather have it print a message still.
Last edited by Dabien; 10-02-2008 at 11:01 AM.
Don't Read This!
[url=http://www.userbars.com][img]http://img27.imageshack.us/img27/3774/userbar720425ch9.gif[/img][/url]
Oops!
Code:function TOOL:LeftClick( trace ) if(CLIENT) then return false end self:GetOwner():PrintMessage(HUD_PRINTTALK, "You cannot paste here, you can only save it and download it.") return false end
Bookmarks