Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: TropicalTitties on May 09, 2011, 08:43:41 AM

Title: Deny gm_giveswep HELP
Post by: TropicalTitties on May 09, 2011, 08:43:41 AM
How do i deny admins the right to use gm_giveswep so they cannot give themselves weapons from the prop/vehicle/weapon spawning menu?
Title: Re: Deny gm_giveswep HELP
Post by: Aaron113 on May 09, 2011, 01:23:17 PM
Gamemode.PlayerSpawnSWEP (http://wiki.garrysmod.com/favicon.ico) (http://wiki.garrysmod.com/?title=Gamemode.PlayerSpawnSWEP)
Gamemode.PlayerGiveSWEP (http://wiki.garrysmod.com/favicon.ico) (http://wiki.garrysmod.com/?title=Gamemode.PlayerGiveSWEP)
Assuming you have experience with Lua.
Title: Re: Deny gm_giveswep HELP
Post by: TropicalTitties on May 09, 2011, 02:19:10 PM
Thanks aaron, i have the server on darkrp so would it be in the darkrp gamemode files, and is there any way to make it superadmin only but not normal admin?
Title: Re: Deny gm_giveswep HELP
Post by: Aaron113 on May 09, 2011, 02:53:20 PM
Player.IsSuperAdmin (http://wiki.garrysmod.com/favicon.ico) (http://wiki.garrysmod.com/?title=Player.IsSuperAdmin)
Title: Re: Deny gm_giveswep HELP
Post by: Aaron113 on May 10, 2011, 06:36:58 PM
Now you could also use URS (http://forums.ulyssesmod.net/index.php/topic,5269.0.html) to do this.