InfuzionGaming.com
September 09, 2010, 01:11:19 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Shout Box

[History] [Commands]

[September 08, 2010, 12:05:52 AM] Mx|MarO: this mother fucker

[September 08, 2010, 12:05:53 AM] Mx|MarO: http://www.huffingtonpost.com/2010/08/31/girl-sparks-animal-activi_n_701011.html

[September 08, 2010, 12:07:14 AM] Mx|MarO: fucking trow her to the river with a fucking 1000% pounds tied to her fucking body WTF 

[September 08, 2010, 12:08:31 AM] Mx|MarO: and God bless this old woman

[September 08, 2010, 12:08:31 AM] Mx|MarO: http://www.vecernji.hr/vijesti/stence-koji-su-baceni-rijeku-spasila-je-baka-ruza-clanak-186868

[September 08, 2010, 12:08:32 AM] Mx|MarO: lol

[September 08, 2010, 12:04:05 PM] kushman: fuck that maro, first you have to make her eat dog food for a year, then you gotta make her put on a shock collar, then throw her into the river with 15 bags of dog food tied to her.

[September 08, 2010, 02:27:43 PM] Mx|MarO: u are right nigga..  :@  lol

[September 08, 2010, 05:11:07 PM] kao: http://www.sk-gaming.com/video/284808-ESWC_2010_Presented_by_SteelSeries

[September 08, 2010, 05:33:53 PM] Joe: http://www.youtube.com/watch?v=rBwKjxDwds0

[September 08, 2010, 09:58:19 PM] kao: OMG MY INTERNET GONNA MAKE ME A DEASEASE 

[September 08, 2010, 09:58:26 PM] kao: A FUCKEN HEART ATTACK

News:
$0/$150 received. due by: september 15th - donate today!






------> ALL ip's, shortened! http://izgs.info/ <------
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to script  (Read 142 times)
racsO
New Member
*

Popularity: 0
Offline Offline

Posts: 2


View Profile Email
« on: February 24, 2010, 03:53:07 PM »

Basics

First think you need to know is that an alias is substitute command for a group of other commands. This is an example of a alias:

alias fdsasd "ak47;net_graph 3"

You ALWAYS need quotes around the second part if it has a semicolon in it. If not, the game will think it's two separate commands: "alias fdsasd ak47" and "net_graph3"

As you see the commands are separated by a semicolon. Now, put this in your userconfig.cfg in your cstrike folder (make one if you don't have one) and it should work. Now, when you type "fdsasd" in console then you will buy an ak47 and put net_Graph 3 on.

~~
Toggle and Cycle scripting

This is basically cycling through a few commands while pressing the same button. This is done by changing the bind of the key. Both of these examples use the same idea, but the first one is simpler to understand.

First example: (less complex)

net_graph 3
bind f netgraph0
alias netgraph0 "net_graph 0;bind f netgraph3"
alias netgraph3 "net_graph 3;bind f netgraph0"

This toggles from net_graph 3 to 0 with just pressing the f key. net_graph 3 is default.


Second example: (more complex)

net_graph 3
Bind f netgraph0
alias netgraph0 "net_Graph 0;bind f netgraph1"
alias netgraph1 "net_graph 1;bind f netgraph2"
alias netgraph2 "net_Graph 2;bind f netgraph3"
alias netgraph3 "net_graph 3;bind f netgraph0"

What this script does is by default, there is net_Graph 3. (because of the "net_graph 3" line at the beginning). And when you press F, the net_Graph options will cycle through.

~~
+/- Toggle scripting

What the +/- scripts do is that when you hold down a key, a command will be entered, and when you let go, another command gets entered. Here I'll used the net_Graph for an example again.

net_graph 0
bind f +netgraph3
Alias +netgraph3 net_graph 3
Alias -netgraph3 net_Graph 0

That's all! This does not need quotes because there are no commands separated by semicolons. This has net_graph 0 by default, and turns net_graph 3 on whenever you have the F button pressed in.

Questions?
Logged
LuD
Staff-GameServer Administrator
Jr. Member
*****

Popularity: 0
Offline Offline

Posts: 49


View Profile
« Reply #1 on: February 24, 2010, 05:41:04 PM »

HAHAH racso ur too smart bic boi

Logged
Peter^_^
Global Moderator
VIP User
*****

Popularity: 1
Offline Offline

Posts: 1846


View Profile
« Reply #2 on: February 25, 2010, 02:09:58 PM »

already been posted long ago

http://www.infuziongaming.com/forum/index.php/board,10.20.html


pz
Logged

racsO
New Member
*

Popularity: 0
Offline Offline

Posts: 2


View Profile Email
« Reply #3 on: February 25, 2010, 03:32:02 PM »


O.... FAK U

This covers some different stuff though. Like cycling. :|
Logged
ALFA II | KoMMyHucT
200+ user!
***

Popularity: -24
Offline Offline

Posts: 271


2773636
View Profile
« Reply #4 on: February 25, 2010, 09:21:28 PM »

so this is scripting tutorial? lmao... its like making java tutorial with only using println xDDD
Logged





LuD
Staff-GameServer Administrator
Jr. Member
*****

Popularity: 0
Offline Offline

Posts: 49


View Profile
« Reply #5 on: February 25, 2010, 09:47:05 PM »

i think that its a pretty good tutorial
gj
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!