1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

[SOLVED] sv_test for a specified rank/user only? (multiplayer server related)

Discussion in 'Modding Help' started by adamitude, Apr 19, 2014.

  1. adamitude

    adamitude Base Burner

    Messages:
    13
    Hey guys, I'm new to the forums and I wasn't quite sure where to put this as I couldnt find a server help section, so this category was the next best thing.

    What I'd like to know is how/if I could enable the chat commands brought by "sv_test" to super admins or a certain user only. I couldn't find any type of permission or option for this anywhere online. Thanks for your help!


    Answer by Mazey:

     
    Last edited: Apr 21, 2014
  2. Mazey

    Mazey Haxor Global Moderator Forum Moderator Staff Alumni Donator Official Server Admin

    Messages:
    1,914
    KAG/Base/Rules/CommonScrips/ChatCommands.as
    if(sv_test)
    ->
    if(sv_test && player.isMod())

    Then turn on sv_test and it should work.
     
    adamitude likes this.
  3. adamitude

    adamitude Base Burner

    Messages:
    13
    Thank you very much! ::): That makes sense, I shall try it out.

    Also, won't the auto-updater overwrite this? If not, why?
     
  4. Mazey

    Mazey Haxor Global Moderator Forum Moderator Staff Alumni Donator Official Server Admin

    Messages:
    1,914
    Oh yes, it will.
    You can make it a mod using /Mods folder but as it's just a few letters I guess it doesn't matter.
    You can also use autoupdate_ignore_custom.cfg
    Code:
    # Autoupdate will ignore these files
    # add paths relative to this one
    # separated by line break
    # eg.
    # curl-license.txt
    # Base/somefile.gif
    
    Base/Rules/CommonScripts/ChatCommands.as
    Like this people won't need to download a mod.
     
    adamitude likes this.
  5. adamitude

    adamitude Base Burner

    Messages:
    13
    Ah, awesome! Does that also mean I can change some of the games rules as well without making people download anything?
     
  6. Mazey

    Mazey Haxor Global Moderator Forum Moderator Staff Alumni Donator Official Server Admin

    Messages:
    1,914
    Yep.
     
    adamitude likes this.
  7. adamitude

    adamitude Base Burner

    Messages:
    13
    Thanks bro! You unlocked a whole new world for me :P