• ENT:AcceptInput help
    1 replies, posted
[lua] function ENT:AcceptInput( name, activator, caller ) if ( name == "Use" && ValidEntity( activator ) && activator:IsUserGroup("respected")) then umsg.Start( "Weapon", activator ) umsg.End( ) end end [/lua] I'm not sure how to make the menu activate when A player is of a certain rank. Also is there a way to make it that if a Player isn't [I]Respected[/I] it opens a different menu??
Suggested reading before you go further: [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexd325.html?title=User_Messages[/url] [B][U]For Evolve admin mod:[/U][/B] [lua]if ( ply:EV_HasPrivilege( "Kill privilege" ) ) then[/lua] [url]http://evolve.overvprojects.nl/index.php?page=docs&subject=development[/url] [B][U]For ULX admin mod:[/U][/B] [url]http://ulyssesmod.net/docs/files/lua/ulib/shared/sh_ucl-lua.html#Player:GetUserGroup[/url] [url]http://ulyssesmod.net/docs/files/lua/ulib/shared/sh_ucl-lua.html#Player:CheckGroup[/url] [B][U]For Exsto admin mod:[/U][/B] [lua]Rank = ply:GetRank()[/lua] [url]http://code.google.com/codesearch#8Z6Ng6GI5pU/trunk/lua/exsto/sh_access.lua&l=841[/url]
Sorry, you need to Log In to post a reply to this thread.