• DarkRP command with ULX groups
    9 replies, posted
Currently my admins can do rp_setcash, but I want to exclude some of these commands for them, how do I do that? I use ULX. Also, My donators should be able to become any job without having to vote, how do I do this? thanks!
As for the rp_setcash, edit the command in the gamemode to make it so only certain usergroups can do it instead of anyone considered super-admin by the game. What I do is just restrict it from players entirely and make it so only the console can do it (people with ulx rcon access or just the rcon password can still use it through those functions).
[QUOTE=>>;39672609]As for the rp_setcash, edit the command in the gamemode to make it so only certain usergroups can do it instead of anyone considered super-admin by the game. What I do is just restrict it from players entirely and make it so only the console can do it (people with ulx rcon access or just the rcon password can still use it through those functions).[/QUOTE] I'm kinda noob in Lua, so I really dont know where to start, maybe also a way to make spawning entitites superadmin+ (some ofmy admins are spawning item_battery's and ammo etc :s )
By default it should already be only if ply:IsSuperAdmin(), unless you've changed that, I don't understand how your admins can use this command unless they have super admin access. You could even restrict that command so only specific SteamID's can use it.
[QUOTE=GmodLUA;39673167]By default it should already be only if ply:IsSuperAdmin(), unless you've changed that, I don't understand how your admins can use this command unless they have super admin access. You could even restrict that command so only specific SteamID's can use it.[/QUOTE] More than one user-group can return true with Player.IsSuperAdmin, it all depends on their privileges.
[QUOTE=>>;39673574]More than one user-group can return true with Player.IsSuperAdmin, it all depends on their privileges.[/QUOTE] If you actually read the whole post rather than half of it, you've repeated what I said.
[QUOTE=GmodLUA;39687921]If you actually read the whole post rather than half of it, you've repeated what I said.[/QUOTE] Well actually I still dont know how to do these stuff :/ But more important is disableing them from spawning entities, they cant spawn weaps, thats good, but thhey can spawn batteries, etc, so all entities
How about you make a new usergroup called 'moderator' in the FAdmin Menu (TAB) by clicking someone's name and setting their access to a new group. After you've added them to a new group, Use the console and type ulx groupallow "ulx commandhere". This is what I've done and basically I've given "ulx kick", "ulx ban", "ulx mute", "ulx gag" and "ulx goto" to the moderator group. This way you don't have to spend much time changing code to only allow superadmins to do things and not admins.
[QUOTE=Keydose;39689652]How about you make a new usergroup called 'moderator' in the FAdmin Menu (TAB) by clicking someone's name and setting their access to a new group. After you've added them to a new group, Use the console and type ulx groupallow "ulx commandhere". This is what I've done and basically I've given "ulx kick", "ulx ban", "ulx mute", "ulx gag" and "ulx goto" to the moderator group. This way you don't have to spend much time changing code to only allow superadmins to do things and not admins.[/QUOTE] I removed FAdmin and replace dit with a different scoreboard, Fadmin is shit when you use ULX aswel
[QUOTE=3nforc3r;39672859]I'm kinda noob in Lua, so I really dont know where to start, maybe also a way to make spawning entitites superadmin+ (some ofmy admins are spawning item_battery's and ammo etc :s )[/QUOTE] Demote those admins?
Sorry, you need to Log In to post a reply to this thread.