Search
Username:
Password:
Register or Reset Password
Remove the ads!
  
Save, and execute script
Difficulty: Beginner
Category: CS:S > ScriptingAuthor(s): ResidentEvil91

Hello!


I am going to tell you how to save and execute
Save:

(Screenshots 1-3)

Find script you would like to save and use.

For example:
Attack crosshair color

Copy the script code (ctrl+c), go to your cfg foldier

C:\Program Files\Steam\steamapps\RE91\counter-strike source\cstrike\cfg

create new text file and name it how you like.
For example: Crosshair.txt

Open the .txt file, its empty, so you paste (ctrl+v) script you copied, save and close.

Now, its time to make it into cfg file, so you rename (F2) Crosshair.txt to Crosshair.cfg. Itll give you some message, press OK to continue.

Note: If you dont have .txt, .cfg endings, you can do it another way: (not sure about this)

Go to Crosshair.cfg propeties (right click and propeties), Now change you can see crosshair.txt there, now rename it to crosshair.cfg, click apply and ok.


Now you have done the saving.


Execute:

(Screenshot 4)

In-Game, you can execute the script typing next this into console:
exec Crosshair

Now you have done executing =)


If you dont have console you need to do this:
Open your steam, click "My Games" tab - Select Counter-Strike: Source - right click -> propeties - Set launch options.. - and type there: -console


Tip: If you dont want to type this every time you go playing, you should bind your scipt(s) to buttons.

My script is binded to enter:
Bind enter "exec script", or bind enter "exec Script1; exec script2; exec script3"

There is also way to exec script without binds, called autoconfig but i dont know anything bout that =)


If i have wrote or explained something wrong, report it by leaving message, please, thank you!

Ill be adding screenshots soon!
Added: 9 months agoTags: save, execute, script, exec
Feedback (13)
Page of 2   1 2 Next Page
.
Dont say it.. We know it already!Y2M
Posted 5 months ago
Posted by Codie

Hey i still cant get it to work any sugjestions on wht i did wrong? btw i have css will this still work for me?

Itll work aslong its .cfg file.
If you cant change the format, go to foldier manager settings, show and uncheck "Show known programs lite" or something like that. IT should then show .exe .txt etc. Then you rename the script.txt to script.cfg, and might give you warning, you say yes. the script must be in cfg foldier if you play CSS and then go to game and type: Exec script
If 1.6 you type exec script.cfg
Codie .
BananiteY2M
Posted 5 months ago
Hey i still cant get it to work any sugjestions on wht i did wrong? btw i have css will this still work for me?
- Bananite
.
Dont say it.. We know it already!Y2M
Posted 8 months ago
Posted by Porcupine

Pros: A very easy to use and simple tutorial to follow. Screenshots are excellent.
Cons: Not well explained on error messages, there can be many more errors.
Improvements: Avoid the Blue font, can hardly read it.
Notes: I like this tutorial, it helped me find the folder I needed for custom cfg files was just the original folder.

If you would like me to change it, please suggest colors me to use :P
Porcupine .
BananiteY2M
Posted 8 months ago
Pros: A very easy to use and simple tutorial to follow. Screenshots are excellent.
Cons: Not well explained on error messages, there can be many more errors.
Improvements: Avoid the Blue font, can hardly read it.
Notes: I like this tutorial, it helped me find the folder I needed for custom cfg files was just the original folder.
- Bananite
.
Dont say it.. We know it already!Y2M
Posted 8 months ago
Posted by -Exppo

Dosnt work for me ;>

Mmm.. What part?

If you play 1.6, you must type: exec "Script name.cfg"
-Exppo .
BananiteY2M
Posted 8 months ago
Dosnt work for me ;>
- Bananite
N00BL3T .
Slash is my idolY2M
Posted 8 months ago
That's much better :D
.
Dont say it.. We know it already!Y2M
Posted 8 months ago
Posted by N00BL3T

Posted by ResidentEvil91

Posted by N00BL3T

Everythiing is good except for the font colour, I have to highlight the whole thing just to read it.

What colours you suggest? =)

Well, anything but black, but my personal preference would be a white or a blue.

You like it now? =)
N00BL3T .
Slash is my idolY2M
Posted 8 months ago
Posted by ResidentEvil91

Posted by N00BL3T

Everythiing is good except for the font colour, I have to highlight the whole thing just to read it.

What colours you suggest? =)

Well, anything but black, but my personal preference would be a white or a blue.
.
Dont say it.. We know it already!Y2M
Posted 8 months ago
Posted by N00BL3T

Everythiing is good except for the font colour, I have to highlight the whole thing just to read it.

What colours you suggest? =)
Page of 2   1 2 Next Page
Add Feedback
Provide constructive feedback. What is "constructive"?
You cannot post yet!
Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop.

To post in this submission register or login.
Assessment
The community's verdict.
User Rating [+]
9/10
bScore
9.0/10
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This Tutorial in a nutshell...
No stamps recorded
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.




Brought to you by...
noobs!ncorporated
We work it up, like a noob
Membership: On Request
Primary Skills: Coding/Scripting, Graphic Design, Mapping, Modelling, Texturing
Inception: 1 year ago
Vote for Studio
Like this tut? Vote noobs!ncorporated for one or more monthly awards.
You must login or register to access this!
Related Tutorials