Binding, scripts, etc

binding is attaching a command to a keypress. the command could: change a server var, it could change a client var, it could make you spam and then leave, it could crash your computer and/or the server (i will not talk about crashing servers, that is probably against some policy and just generally an asshole move). the basic command is bind "key" "command(s)"; for simplicitys sake i suggest you keep it to a run command for multiple or long commands

ie: 
wrong:
bind "k" "say lol; say lol; say lol;"
right:
bind "k" "run lolsfun";
[lolsfun:
say lol;
say lol;
say lol;]
that makes everything a bit easier to swap around and rebind, trust me.

get creative: think outside the box, as i said, you can do practically anything with binds and a brain. you can spam, you can write a forkbomb/do-loop you can bhop really easily you can make easily deployable and repeallable patches, perfect for adminning a large custom server community.

ex: addend to config.cfg: exec fix.cfg
fix.cfg
bind "k" "fix_crap"
bind "l" "makesoitworksonotherservers"
you get the drift. and remember: bowties are cool

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Tutorial.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Tutorial a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Tutorial.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • Devieus's Levels
    • P3: Peasant
      Points: 23,437
    • E2: Guide
      EF: 26
    • C2: Treehouse Member
    • A4: Graduate
      Account Age: 3 years
    Username
    Devieus
    Posted 6 months ago

    Posted by Reagent

    Posted by Devieus

    Posted by Reagent

    wow. i just checked my writing. the formatting did NOT go over right. sorry about that. in its current state it might be a bit hard to read. or the spelling. i don't really care too much about spelling, so please excuse me, or not, if you please.

    escape underscores with backslashes, or surround scripts with pre tags. Make linebreaks explicit with a linebreak tag.

    Now fix it, fix it, fix it, fix it.

    escape undersocres with backslashes? but thanks a bunch with the pre-tags :)

    Yes, '_' with '\', so instead of 'one_two' it'd be 'one\_two', also, that square bracket is new to me, I'm not even sure it's right.

    User Title
    Sentinel of the TV remote
  • Reagent's Levels
    • P1: Beggar
      Points: 78
    • C1: Member
    • A2: Tenderfoot
      Account Age: 11 months
    Posted 6 months ago

    Posted by Devieus

    Posted by Reagent

    wow. i just checked my writing. the formatting did NOT go over right. sorry about that. in its current state it might be a bit hard to read. or the spelling. i don't really care too much about spelling, so please excuse me, or not, if you please.

    escape underscores with backslashes, or surround scripts with pre tags. Make linebreaks explicit with a linebreak tag.

    Now fix it, fix it, fix it, fix it.

    escape undersocres with backslashes? but thanks a bunch with the pre-tags :)

    User Title
    Quinn: Source and scene music.
  • Devieus's Levels
    • P3: Peasant
      Points: 23,437
    • E2: Guide
      EF: 26
    • C2: Treehouse Member
    • A4: Graduate
      Account Age: 3 years
    Username
    Devieus
    Posted 6 months ago

    Posted by Reagent

    wow. i just checked my writing. the formatting did NOT go over right. sorry about that. in its current state it might be a bit hard to read. or the spelling. i don't really care too much about spelling, so please excuse me, or not, if you please.

    escape underscores with backslashes, or surround scripts with pre tags. Make linebreaks explicit with a linebreak tag.

    Now fix it, fix it, fix it, fix it.

    User Title
    Sentinel of the TV remote
  • Reagent's Levels
    • P1: Beggar
      Points: 78
    • C1: Member
    • A2: Tenderfoot
      Account Age: 11 months
    Posted 6 months ago

    wow. i just checked my writing. the formatting did NOT go over right. sorry about that. in its current state it might be a bit hard to read. or the spelling. i don't really care too much about spelling, so please excuse me, or not, if you please.

    User Title
    Quinn: Source and scene music.

Credits

Submitter
Reagent's Levels
  • P1: Beggar
    Points: 78
  • C1: Member
  • A2: Tenderfoot
    Account Age: 11 months
Reagent (Creator/Co-creator)
Key Authors
Reagent

Rating

?/10
Not yet rated.

Additional Info

Genre
Coding/Scripting
Difficulty Level
Beginner

Stats

Post Count
4
ViewCount
663
Date Added
6 months ago
Date Modified
6 months ago

Share

Embed Code
Code to use:

More embeddable images

Bookmark and Share