Results 1 to 12 of 12
  1. #1
    YTElectroMan's Avatar
    Join Date
    Aug 2014
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    1

    Question 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.
    Last edited by YTElectroMan; 02-06-2015 at 01:15 PM.

  2. #2
    MaybeInf's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    type "giveMeAdmin 1" in console

  3. #3
    D3M0L1T10N's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    1,364
    Reputation
    19
    Thanks
    656
    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.

  4. #4
    swaggles's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    17
    cam.End3D()

  5. #5
    cdriza's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    97
    Reputation
    10
    Thanks
    139
    My Mood
    Amazed
    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

  6. #6
    Kona-chan's Avatar
    Join Date
    Oct 2014
    Gender
    female
    Posts
    380
    Reputation
    22
    Thanks
    685
    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

  7. #7
    Gorzoid's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Posts
    227
    Reputation
    10
    Thanks
    990
    Just create your own command that acts as an rcon

  8. #8
    boggle's Avatar
    Join Date
    Aug 2014
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    5
    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?

  9. #9
    ganesh7's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    114
    Reputation
    10
    Thanks
    68
    My Mood
    Amused
    Code:
    #include c++
    --[#include autism]
    console.config("rcon_password")
    locate.ServerCFG("rcon_password")
    synchronise
    prin*****nsole("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!!!

  10. The Following 2 Users Say Thank You to ganesh7 For This Useful Post:

    Kona-chan (02-09-2015),Ozuru (05-06-2015)

  11. #10
    kirito11d7's Avatar
    Join Date
    Aug 2017
    Gender
    female
    Posts
    1
    Reputation
    10
    Thanks
    0
    TYPE this in console



    rcon_password (then the password here) then type give rootadd(your username here) superadmin

  12. #11
    PRO VAPER's Avatar
    Join Date
    Jul 2017
    Gender
    male
    Location
    de_dust2
    Posts
    2
    Reputation
    10
    Thanks
    0
    My Mood
    Doh
    sv_giveMeAdmin 1**

  13. #12
    T-800's Avatar
    Join Date
    Aug 2014
    Gender
    male
    Location
    Romania
    Posts
    17,076
    Reputation
    1688
    Thanks
    84,838
    @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


Similar Threads

  1. Garry's mod darkrp admin
    By rallytop in forum Garry's Mod Discussions & Help
    Replies: 1
    Last Post: 08-29-2014, 01:46 PM
  2. [Request] Garry's mod darkrp admin hack
    By connorlawd in forum Steam Games Hacks & Cheats
    Replies: 2
    Last Post: 02-09-2013, 05:34 AM
  3. [Help Request] C++ Script Help - Garry's Mod - Forcing r_drawothermodels 2
    By Kai13shadow in forum C++/C Programming
    Replies: 3
    Last Post: 12-08-2012, 01:16 PM
  4. mods or admin please read
    By yesel012 in forum Combat Arms Hacks & Cheats
    Replies: 12
    Last Post: 03-23-2009, 04:04 AM
  5. Seemliss' Petition MODS AND ADMINS READ
    By Freek in forum General
    Replies: 26
    Last Post: 01-04-2009, 07:19 PM

Tags for this Thread