• The Ultimate Guide to Derma - Everything there is to know about Derma
    217 replies, posted
OP gone...
Cool bump bro.
[QUOTE=Mrs Affinity;16151599]Cool bump bro.[/QUOTE] Why thank you.
Op = ...
Too bad derma sucks.
[QUOTE=killer911pt;16295764]Op = ...[/QUOTE] only reason it's blank is because there's a limit of how much text you can have in a post. Over flowing will result in a blank post. If you wanted to see what he had in the post look [url=http://wiki.garrysmod.com/?title=Guide_to_Derma]here[/url].
Calling on derma menu instead of using a console command Towards the bottom of your derm place this. [lua]usermessage.Hook("playermenu", testmenu)[/lua] Which for example looks like this. [lua] PropertySheet:AddSheet( "User Menu", Menu1, "gui/silkicons/user", false, false, "Client control!" ) end usermessage.Hook("playermenu", testmenu)[/lua] Then after that in your init or whatever your calling your files place this. [lua]function GM:ShowHelp(ply) if ply:isAdmin or ply:isSuperAdmin then umsg.Start("playermenu", ply) umsg.End() end[/lua] The above lua function calls upon the window with a [b]hook[/b] instead of a command.
You fail at the latter 2 examples, the second one does not need the end, and the third it is IsAdmin and not isAdmin (Same of IsSuperAdmin, not isSuperAdmin).
Sorry, you need to Log In to post a reply to this thread.