QuestionHelpGarry's Mod: Force Admin Using Console (Read Info Please)

Posts 1–12 of 12 · Page 1 of 1
Garry's Mod: Force Admin Using Console (Read Info Please)
My friend asked me to make him a custom weapon addon (SWeps,) and I just want to mess with him a bit and make it so that when he goes to implement the addon on his server, it (my addon) will read the server config file for the Rcon password. Then when I type in a specific command, it will print the Rcon password to the console for me.

I was wondering if this was possible? If so how would I go about programming it into the addon?

THIS IS A SERVER IN WHICH MY FRIEND HAS A HOST FOR. THIS IS ONLY A JOKE. The command (if possible) is going to be a very complex, randomly generated command. The server he is hosting is for his friends ONLY.
type "giveMeAdmin 1" in console
sv_giveMeAdmin 1**
hey i am just going to mess with him Lmao my jokes r superior, and im coding friend swep even though i can't print the rcon Password to my botnet.
okay

so

in

sv_urshiteaddonherekiddo.lua

put

Code:
concommand.Add("sv_allowlua", function()
local rekt = GetConVarString("rcon_password")
local son = GetConVar("rcon_password")
print(rekt)
print(son)
end )
then join his game
and enter in console
sv_allowlua

and
it *should* print the rcon password

now go away skid
Quote Originally Posted by cdriza View Post
okay

so

in

sv_urshiteaddonherekiddo.lua

put

Code:
concommand.Add("sv_allowlua", function()
local rekt = GetConVarString("rcon_password")
local son = GetConVar("rcon_password")
print(rekt)
print(son)
end )
then join his game
and enter in console
sv_allowlua

and
it *should* print the rcon password

now go away skid
because that's totally going to work
Just create your own command that acts as an rcon
okay if all the mpgh guys here are 2 autistic to do it just file.Read and string.explode the server.cfg to output the rcon password ok?
Code:
#include c++
--[#include autism]
console.config("rcon_password")
locate.ServerCFG("rcon_password")
synchronise
print.console("rcon_password")
Put that into Notepad and save as svr_rcon.dll
After you've done that, locate the bin folder in the Garry's Mod directory and place it in there.
Once that is done you open up GMod and then type into the console 'playdemo %root%/bin/svr_rcon.dll

PROFIT!!!
TYPE this in console



rcon_password (then the password here) then type give rootadd(your username here) superadmin
@tikene , stop with this shitposting, useless and non-sense things.
Posts 1–12 of 12 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us