+ Reply to Thread
Results 1 to 8 of 8

Thread: Wire + Console commands + DarkRP

  1. #1
    Wire Amateur Teaqu's Avatar
    Join Date
    Mar 2008
    Posts
    72

    Default Wire + Console commands + DarkRP

    Before you bit my head off...
    i have all ready been looking around for this but with no luck
    so I'm making a new post

    Okay i remember some where there was ability to use wire mod and console commands
    BUT no matter who activated the buttons to launch the console command they would only get executed at the owner (i think it was the discussion about e-gates...)

    but i have a suggestion / idea about this too

    You make a box(or what ever the model is...) with for example:
    You could call the Tool: Ccom

    Ccom
    (Any of the Strings/ARGs could be numbers OR text OR a gate)
    String 1: "rp_setmoney"
    ARG1: "Add" (A to CV: 300 | B to Ranger's Drp(witch is 433))
    ARG2: "Ranger" (Receiving Steam_Id From the player in front of it)
    ARG3: ""
    ARG4: ""
    ARG5: ""

    (this would do "rp_setmoney 733 Steam_0_1_123456789")

    Setting a ARG's Field empty makes it open the option to USE that as an input like above
    If text is added it disables the ARG and simply skips it

    And there you have it

    Of curse i might have set the Args wrong with the money but it's just an example... it should be easy to do

    1 Ccom should hold 1 String and 5 ARGs, if you want more Console Command you would need to make more of these

    The reason i request this is be curse there are plenty(like me) who don't understand the e-gate and this would be more powerfull and WAY simple to use XD

    BUT STILL
    The commands are STILL being run on the owner of the Ccom so you wouldn't be able to cheat with it
    .::My Gmod Server::.
    Name: YZ's [D] Server
    IP/Port: 85.92.86.117:27015
    Addons: [PHX3, SBMP, Wire, WireX, Stargate, +more]

  2. #2
    Wire Sofaking Beer's Avatar
    Join Date
    Jul 2007
    Location
    Dallas, Texas
    Posts
    1,357

    Default Re: Wire + Console commands + DarkRP

    The command you are talking about is the concommand() function used in the e-gates.

    Set up an expression chip with one input (a button, call it Button), and one output (not used but you need at least one, just call it Dummy). Make your button non-toggle and put the following code in the e-gate:
    ~Button&Button->concommand('say hello');

    Every time you push the button, the owner will say hello using the 'say' console command.

    Conna's Command Box addon will execute commands on whichever user uses it, but it's not wired and I don't think it supports Adv Dupe:
    Conna's Tools Pack Best tools Download!

    I DO think some sort of "Command Box" tool would be useful in wire, though it is very easy to abuse (many commands have to be blacklisted, like exit,quit,retry,connect,kill,bind,etc). If you don't understand the e-gate, learn it. It's really not very difficult at all. Plenty of tutorials floating around on the subject.

  3. #3
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: Wire + Console commands + DarkRP

    Just a note, use "concmd()" instead of "concommand()", garry has added some dumb check that ignores any convars with "concommand" in them, hence your line will keep disappearing when you write it.

  4. #4
    Wire Sofaking Beer's Avatar
    Join Date
    Jul 2007
    Location
    Dallas, Texas
    Posts
    1,357

    Default Re: Wire + Console commands + DarkRP

    Quote Originally Posted by Syranide View Post
    Just a note, use "concmd()" instead of "concommand()", garry has added some dumb check that ignores any convars with "concommand" in them, hence your line will keep disappearing when you write it.
    Seems like he does these things on purpose sometimes just to drive everyone nuts.

  5. #5
    Wire Amateur Teaqu's Avatar
    Join Date
    Mar 2008
    Posts
    72

    Default Re: Wire + Console commands + DarkRP

    WHY IS IT SO HARD TO DO?
    Why not let the admins of the server decide what to blacklist and what not?
    (of curse the: exit,quit,retry,connect,kill,bind should be blacklisted...)
    But this would be a nice tool for the beginners

    ~Button&Button->concommand('say hello');
    eeeh wtf?
    okay you all ready lost me at this line...
    I'm gonna go on tricky tut's and see if there is any "easy" tut's for the e-gate
    .::My Gmod Server::.
    Name: YZ's [D] Server
    IP/Port: 85.92.86.117:27015
    Addons: [PHX3, SBMP, Wire, WireX, Stargate, +more]

  6. #6
    Wire Sofaking Squeakyneb's Avatar
    Join Date
    May 2008
    Posts
    558

    Default Re: Wire + Console commands + DarkRP

    that line says that
    Code:
     IF
    ~button //if the button has changed, try it witout this line to see the effect
    & //last condition and next condition are true
    button //button is logical true (i.e. 1, 0 being false)
    THEN:
    concmd('say hello') //Run console command 'say hello', which makes you say hello in the chat
    in english, it means: if the button has changed and it is putting out a 1, then run console command 'say hello'

    if you want an entire expression:
    Code:
    N@Hello
    I@Button
    O@Dummy
    ~button&button -> concmd('say Hello')
    Please note that the Dummy output isn't used, but the expression chip will have a heartattack if there is no output.

    Quote Originally Posted by Bull View Post
    I'm annoyed at having to use my keyboard when coding. Can someone please make voice-recognition so I can just talk?

  7. #7
    Wire Amateur Exitium II's Avatar
    Join Date
    Sep 2008
    Location
    The bush just outside your window
    Posts
    55

    Default Re: Wire + Console commands + DarkRP

    Quote Originally Posted by Teaqu View Post
    WHY IS IT SO HARD TO DO?
    Why not let the admins of the server decide what to blacklist and what not?
    (of curse the: exit,quit,retry,connect,kill,bind should be blacklisted...)
    But this would be a nice tool for the beginners

    ~Button&Button->concommand('say hello');
    eeeh wtf?
    okay you all ready lost me at this line...
    I'm gonna go on tricky tut's and see if there is any "easy" tut's for the e-gate
    Seriously, what's so hard about it?

    You create an expression 1 gate, you type in the first line ~Button & Button -> concmd('say Hello');

    And then when someone presses the button wired to the gate, the owner of the gate says "Hello".

    It doesn't get more basic than that.
    - I have no life.


  8. #8
    Wire Sofaking Squeakyneb's Avatar
    Join Date
    May 2008
    Posts
    558

    Default Re: Wire + Console commands + DarkRP

    Dont just say "do this, do that," explain each peice to him, then he will learn, thus preventing the asking of noobish questions.

    Quote Originally Posted by Bull View Post
    I'm annoyed at having to use my keyboard when coding. Can someone please make voice-recognition so I can just talk?

+ Reply to Thread

Similar Threads

  1. Console Commands
    By Officer Tibbles in forum Installation and Malfunctions Support
    Replies: 6
    Last Post: 12-29-2008, 03:35 AM
  2. Running console commands with wire
    By System Paradox in forum Gate Nostalgia (Old School Wiring) Discussion & Help
    Replies: 7
    Last Post: 09-18-2008, 10:17 PM
  3. wire mod limit console commands dissaper
    By Teaqu in forum Installation and Malfunctions Support
    Replies: 0
    Last Post: 05-09-2008, 12:31 PM
  4. Need console wire commands!
    By Auctionedllama in forum Installation and Malfunctions Support
    Replies: 3
    Last Post: 01-07-2008, 02:34 AM
  5. Dedicated Server - Wire console commands unknown
    By TheL33tist in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 12-09-2007, 11:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots