Jump to content

Recommended Posts

Posted

This is a Tutorial on Scripts:

 

Now lets begin, shall we.

 

///////////////////////////////////////////////////////////////////////////////////////

The Basics

///////////////////////////////////////////////////////////////////////////////////////

 

First, go to Start>Run and type C:\Program Files\Steam\steamapps\user_name\counter-strike\cstrike

(This way, you can have easy access going into this folder).

(As Seen in Screen Shot A)

 

Now, view your folder. You should see one .cfg file that you should be concerned with. It is called, config.cfg. You should not worry about this file though. This file is for settings in game. For example, +mouse1 = fire. This, meaning, one click from the mouse button enables the weapon at hand to fire.

(As Seen in Screen Shot B)

 

Now, to get things further underway, there are a few other things that you should know about.

 

1. You do not need to make a file called, valve.rc

 

and

 

2. You do not need to save you custom settings and/or configurations in a file called, autoexec.cfg. You could but it really is not necessary.

 

I have tested this personally so there is no need to do any of the two above.

 

The reason why these are is this: remember the config.cfg file? Well, at the very bottom of this file is the command, exec userconfig.cfg.

(As Seen in Screen Shot C)

 

That command tells the game to execute the configuration file. Unfortunately, we do not have a file called, userconfig.cfg, but we will - soon enough.

 

Oh, yeah. All of this scripting stuff must be done in notepad.exc, and save this file titled, userconfig.cfg.

(As Seen in Screen Shot D)

 

//////////////////////////////////////////////////////////////////////////////////////

Binding

//////////////////////////////////////////////////////////////////////////////////////

 

Now, ask yourself - what is binding?

 

Binding is how you associate a command to a key (This is laments terms). Everything that happens in the game are associated commands.

 

For example: pressing w (Default) makes you move forward. Well, this command is +forward.

 

Now, to bind a key. Well, binding is very simple. This is the structure on how the bind works:

 

bind "command"

 

Of course, you can bind a key to several commands instead of one like so:

 

bind "command; command 2"

 

Of course, when you do this, make sure you put a space after the semi-colon or else the second command would not read - but the first command will. Also, you must code the command correctly. Please keep these 2 things in mind.

 

//////////////////////////////////////////////////////////////////////////////////////

Alias

//////////////////////////////////////////////////////////////////////////////////////

 

An alias associates a bunch of commands, like a bind, but the difference is that you assign a name to it.

 

The alias structure is not very much different than the binding structure.

 

For example:

 

alias xxx "command1; command2"

 

xxx = AnyName

 

Then, you must bind this to a key. Be it any key you want to.

 

Example:

 

bind f1 "xxx"

 

xxx= the name that you have assigned to the alias.

 

//////////////////////////////////////////////////////////////////////////////////////

Saving the script

//////////////////////////////////////////////////////////////////////////////////////

You can save all of this in the file, userconfig.cfg. Go to Start>Run and paste this into your cstrike folder.

(As Seen in Screen Shot E)

 

//////////////////////////////////////////////////////////////////////////////////////

Screenshot's

//////////////////////////////////////////////////////////////////////////////////////

 

A 3366.jpg

B width=640 height=414http://image.hazardstrip.com/ss/tuts/3367.jpg[/img]

C width=640 height=414http://image.hazardstrip.com/ss/tuts/3368.jpg[/img]

D width=640 height=414http://image.hazardstrip.com/ss/tuts/3369.jpg[/img]

E width=640 height=414http://image.hazardstrip.com/ss/tuts/3370.jpg[/img]

 

 

///////////////////////////////////////////////////////////////////////////////////////

 

credits to : chrisbitm

Guest
This topic is now closed to further replies.


  • Posts

    • We've added 5% discounts for bulk purchases of Google accounts for orders of 300 or more, and 10% for orders of 500 or more. The discount is applied automatically when you place your order! The discount is indicated in the product title and description for each category.  
    • 🎄 CHRISTMAS EVENT 🎄   ‼️ Information and details: https://forum.l2harbor.com/threads/rozhdestvenskie-xlopoty-christmas-chores.9430/post-171464
    • METATG.ORG Direct Telegram Service Provider A bonus of +7% on every order! *We add 7% more followers than your ordered amount to proactively cover potential drops and guarantee you an honest result." Telegram Followers - Price per 1000 SUBSCRIBERS Subscribers 3 days - $0.10 ~ 8 RUB Subscribers. Daily Completion: 200,000,000 Subscribers 7 days - $0.17 ~ 13.6 RUB Subscribers. Daily Completion: 200,000,000 Subscribers 14 days - $0.20 ~ 16 RUB Subscribers. Daily Completion: 200,000,000 Subscribers 30 days - $0.30 ~ 24 RUB Subscribers. Daily Completion: 200,000,000 Subscribers 60 days - $0.40 ~ 32 RUB Subscribers, 14-day guarantee. Daily Completion: 200,000,000 Subscribers 90 days (Super Fast) - $0.50 ~ 40 RUB Subscribers, 14-day guarantee. Daily Completion: 200,000,000 Subscribers 120 days (Super Fast) - $0.60 ~ 48 RUB Subscribers, 14-day guarantee. Daily Completion: 200,000,000 Subscribers Lifetime (Super Fast) - $0.70 ~ 56 RUB Lifetime Subscribers. 14-day guarantee. Daily Completion: 200,000,000 Telegram Services - Price per 1000 Post Views - $0.06 ~ 5 RUB Reactions - $0.08 ~ 6.5 RUB Bot Starts - $0.10 ~ 8 RUB Bot Starts with referrals - $0.15 ~ 12 RUB DISCOUNTS and CASHBACK for large volumes Direct Supplier. We work from our own accounts with our own software! High execution speed. Multiple payment methods. We work 24/7! Additional discounts are discussed for volumes starting from $1000 per day. SUPPORT 24/7 - TELEGRAM WEBSITE 24/7 - METATG.ORG
    • Added: a brand-new default dashboard template. You can now add multiple game/login server builds. Full support for running both PTS & L2J servers simultaneously, with switching between them. Payment systems: added OmegaPay and Pally (new PayPal-style API). Account history now stores everything: donations, items delivered to characters, referrals, transfers between game accounts, and coin transfers to another master account. Personal Promo Code System: you can create a promo code and assign it to a user or promoter. When donating, a player can enter this promo code to receive bonus coins, and the promo code owner also receives a bonus — all fully configurable in the admin panel.     Look demo site: demo
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock