• on screen console
    5 replies, posted
How can i make it so for every player on my server that are staff, have "developer 1" enabled? (A console command) I know how to loop through the players and check if he is a ulx rank, but not sure about the developer 1 part. for k,v in pairs(player.GetAll()) do if v:GetUserGroup() == "superadmin" then --return the function end end
You should probably run it on their initial spawn, check if the player is the rank inside it, then just run [url]http://wiki.garrysmod.com/page/Player/ConCommand[/url] on them with the command.
[QUOTE=Newjorciks;49031841]You should probably run it on their initial spawn, check if the player is the rank inside it, then just run [url]http://wiki.garrysmod.com/page/Player/ConCommand[/url] on them with the command.[/QUOTE] Thanks will try when im home
[QUOTE=xAl3xTh3K1nG;49031788]How can i make it so for every player on my server that are staff, have "developer 1" enabled? (A console command) I know how to loop through the players and check if he is a ulx rank, but not sure about the developer 1 part. for k,v in pairs(player.GetAll()) do if v:GetUserGroup() == "superadmin" then --return the function end end[/QUOTE] [code] for k,v in pairs(player.GetAll()) do if v:GetUserGroup() == "superadmin" then v:ConCommand( "developer", 1 ) end [/code] [code] for k,v in pairs(player.GetAll()) do if v:GetUserGroup() == "superadmin" then v:ConCommand( "developer 1" ) end [/code] One of those should work.
Thanks guys :) I will try now :D
[QUOTE=xAl3xTh3K1nG;49031788]How can i make it so for every player on my server that are staff, have "developer 1" enabled? (A console command) I know how to loop through the players and check if he is a ulx rank, but not sure about the developer 1 part. for k,v in pairs(player.GetAll()) do if v:GetUserGroup() == "superadmin" then --return the function end end[/QUOTE] If you want an actual onscreen only for the server-based stuff, considering this is what it sounds like ( Would explain the admin restriction, normal players can access the client console anyways), take a look at EPOE. [url]https://github.com/Metastruct/EPOE[/url]
Sorry, you need to Log In to post a reply to this thread.