• Not super admin on dark rp
    4 replies, posted
So we just maanged to get our server online but and we've set ourselves to superadmin in settings/users.txt and admin in darkrp/gamemode/admins.lua. However when we try super admin console commands like rp_setmoney it says that we arn't superadmin. users.txt (I tried removing the // infront of the names, but that didn't work): [code] "Users" { // // This is your users file // // You can use this file to add people as admins on your server // Add them to the relevant section // // If you're a Lua coder you can add your own sections and use them // in your script by doing pl:IsUserGroup( "admin" ) etc // "superadmin" { //"Niels" "STEAM_0:1:14235111" } "superadmin" { //"Dakarun" "STEAM_0:1:18749041" } "admin" { //"Niels" "STEAM_0:1:14235111" } "admin" { //"Dakarun" "STEAM_0:1:18749041" } }[/code] admins.lua: [lua]-- admins.lua v 2.0 by philxyz -- Player Priviliges ADMIN = 0 -- DarkRP Admin MAYOR = 1 -- Can become Mayor without a vote (Uses /mayor) CP = 2 -- Can become CP without a vote (Uses /cp) PTOOL = 3 -- Always spawns with the toolgun PHYS = 4 -- Always spawns with the physgun PROP = 5 -- Can always spawn props (unless jailed) RPAdmins = {} -- If you set this to true, all permissions are cleared from the database, so every admin gets lost, nothing gets saved -- and only the players listed here are inserted, _every_ time you start DarkRP -- NOTE TURNING THIS TO TRUE WILL BREAK THE SAVING ON RP_GRANT AND RP_REVOKE! -- SO KEEP YOUR HANDS OFF IT AND LEAVE IT TO FALSE IF YOU WANT TO USE RP_GRANT AND RP_REVOKE -- YES THIS FILE STILL WORKS IF THIS IS SET TO FALSE reset_all_privileges_to_these_on_startup = false -- To configure a player, assign permissions to them in the following way: -- RPAdmins["STEAM_ID"] = {LIST, OF, PERMISSIONS} -- HOW TO GET A STEAM ID: -- 1. JOIN AN INTERNET SERVER (NOT YOURS, UNLESS IT IS DEDICATED AND NON LAN) -- 2. TYPE status IN CONSOLE -- 3. IT WILL LIST STEAM IDs -- 4. STEAM IDS ALWAYS START WITH STEAM_ -- HOW TO GRANT PRIVILEGES TO PLAYERS WHEN IN-GAME: -- Super admin can use rp_grant or rp_revoke [admin|mayor|cp|tool|phys|prop] <Player> -- while in-game to assign and remove privileges during the game without restarting the server /*HERE IS HOW TO MAKE AN ADMIN IN THIS FILE IF YOU'RE TOO LAZY TO USE RP_GRANT OR RP_REVOKE:*/ --[[ DO NOT AdD ADMINS HERE, THESE ARE EXAMPLES: RPAdmins["STEAM_1:0:12345678"] = {ADMIN, MAYOR, CP, PTOOL, PHYS, PROP} RPAdmins["STEAM_1:0:9999999"] = {MAYOR, CP, PHYS} END OF DO NOT ADD ADMINS HERE -- etc.]] -- Do not change anything above this line <-- -- ADD ADMINS/PRIVILEGES UNDER THIS LINE! ------------------------------------------------------------------------------------------------------ RPAdmins["STEAM_0:1:14235111"] = {admin, mayor, cp, phys, prop} RPAdmins["STEAM_0:1:18749041"] = {admin, mayor, cp, phys, prop}[/lua] So, what are we doing wrong?
-snip- :doh:
I already tried removing the // but it didn't work, however I still had the users also in the "admin", so I tried that, however that didn't work, it still says I need superadmin. In the end this worked: [code]"Users" { // // This is your users file // // You can use this file to add people as admins on your server // Add them to the relevant section // // If you're a Lua coder you can add your own sections and use them // in your script by doing pl:IsUserGroup( "admin" ) etc // "superadmin" { "Niels" "STEAM_0:1:14235111" "Dakarun" "STEAM_0:1:18749041" } }[/code] thanks though.
Did you restart the server? Install an admin mod.
Sorry, you need to Log In to post a reply to this thread.