• Disable admins spawing weapons
    5 replies, posted
Hello, i was wandering how to disable admins/superadmins from spawning weapons without editing the SWEP itself and/or just remove the tab from the Q menu.
[lua] concommand.Add("gm_spawnswep",function() return '' end concommand.Add("gm_giveswep",function() return '' end [/lua]
Why not just return? Why the ' '?
Works great thanks.
[QUOTE=Drakehawke;27260784]Why not just return? Why the ' '?[/QUOTE] When I first started I learned off of using return ''. I never really broke the habit.
The only time you need to return "" is in a chat hook. But it doesn't hurt to do it all the time either unless the function specifically wants another value.
Sorry, you need to Log In to post a reply to this thread.