My NLR menu shows up for everyone even for admins and the owner

I just downloaded a NLR Menu that pops up when you die but I dont want it to pop up for admins.
It would be a huge help if somone can explane it to me.

This is the download: http://www.garrysmod.org/downloads/?a=view&id=65205

Kindest regards,
Jeromy Han.

Go to lua/autorun/server/sv_deathmassages.lua and replace:



function SendDeathPanel(pl,cmd,args) 
pl:ConCommand("DrawDeathMsg") -- or RunConsoleCommand("DrawDeathMsg") 
end 


with



function SendDeathPanel(pl,cmd,args) 
    if not pl:IsAdmin() then
        pl:ConCommand("DrawDeathMsg") -- or RunConsoleCommand("DrawDeathMsg")
    end
end 


Actually, should be not IsAdmin or not IsSuperAdmin.

If ply:IsSuperAdmin is true, ply:IsAdmin will always be true.

Huh, I never knew that. I always did both for safety, but that’s good to know.

Haha code_gs, someone told me that yesterday aswell - I used both before aswell xD

For anyone in doubt, http://github.com/garrynewman/garrysmod/blob/master/garrysmod/lua/includes/extensions/player_auth.lua#L10

This rely helped for this NLR Menu but it doesnt work for the new one I got wesnlr

Download here: http://steamcommunity.com/sharedfiles/filedetails/?id=111509626&searchtext=nlr

If you could show me how I fix it here It would be great I did this:



function SendNLRBox(ply,cmd,args) 
    if not pl:IsAdmin() then
        pl:ConCommand("wesnlr")
    end
end


Look at the first argument. It’s now ply instead of pl.

Just change it to ply:IsAdmin() and ply:ConCommand( “wesnlr” )

I got it thank you guys for all the help