ENT:AcceptInput help

[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 Respected it opens a different menu??

Suggested reading before you go further:

For Evolve admin mod:
[lua]if ( ply:EV_HasPrivilege( “Kill privilege” ) ) then[/lua]
http://evolve.overvprojects.nl/index.php?page=docs&subject=development

For ULX admin mod:

For Exsto admin mod:
[lua]Rank = ply:GetRank()[/lua]
http://code.google.com/codesearch#8Z6Ng6GI5pU/trunk/lua/exsto/sh_access.lua&l=841