With cordite in the air, splintered steel, shell casings and powder burns, there’s only one explanation...
Post feedback & meet new friends. General SG discussion.

Moderators: Pardner, TheDoctor

[Tutorial] Bind-Script

Postby Colt Peacemaker » Tue Jan 18, 2011 11:51 am

Hi all!

I am new at this forum and I want to show all normal-SG Player how to use (and create) a own script...

I will show you how to switch between binds (weapon-binds, chat-binds, name-binds)


First of all you need to create a new text-document and name it binds.txt.

Then you need to bind a key for changing between binds.
Code: Select all
bind BACKSPACE "vstr binds"


After this you need to set a function for this command "binds"
Code: Select all
set binds "vstr weapons"

Now you are using the weapons command while pressing BACKSPACE.

Set Weapons
Code: Select all
set weapons "echo ^1W^7eaponsbinds used!; set binds vstr chat; bind ENTER cg_buy weapon_peacemaker"

Here you get and echo (a message from the console) that says you that you use weapon-binds at the moment and he sets the ENTER key to buy a weapon and (last but not least) he sets that you use chat-binds while pressing BACKSPACE next time.

Set Chat
Code: Select all
set chat "echo ^2C^7hatbinds used!; set binds vstr weapons; bind ENTER say ^1H^7i^1!"

Now you are using chatbinds and set ENTER to say Hi!.
And at the end you set that you use the weaponbinds (again) by pressing BACKSPACE.

You can add so many commands and bind how you want and this will make easy to buy, chat or switch between names without binding all keys on your keyboard.

It's really usefull to use the KeyPad (on the right site of your keyboard)...
The keys are
Code: Select all
1 = KP_END
2 = KP_DownArrow
3 = KP_PgDn
4 = KP_LeftArrow
5 = KP_5
6 = KP_RightArrow
7 = KP_HOME
8 = KP_UpArrow
9 = KP_PgUp
0 = KP_INS

Others
[,] is KP_DEL
[ENTER] is KP_ENTER
[+] is KP_PLUS
[-] is KP_MINUS
[/] is KP_SLASH



If you want to save your changes just save [CTRL + S] and rename the text-document to binds.cfg

Then you need to put this document in to your ".../Smokin' Guns/smokinguns" folder and start Smokin' Guns.

Now write:
Code: Select all
/exec binds.cfg



For question just ask and sorry for my bad English ;)
Smokin' Guns: Lt.Colt
Colt Peacemaker
Drifter
 
Posts: 6
Joined: Mon Jan 17, 2011 8:56 pm
Location: Germany



Re: Haris2201

Postby TheDoctor » Tue Jan 18, 2011 6:07 pm

Colt Peacemaker wrote:I am new at this forum...

Hi Harris2201. Don't start with your lies. :x
User avatar
TheDoctor
Smokin' Amigo!
 
Posts: 818
Joined: Sun Jun 06, 2010 3:31 am



Re: Haris2201

Postby Colt Peacemaker » Tue Jan 18, 2011 6:22 pm

TheDoctor wrote:
Colt Peacemaker wrote:I am new at this forum...

Hi Harris2201. Don't start with your lies. :x


Lol, sorry guy,
I think you mix me up with somebody?
I know (from Yunus [serveradmin]) there is a guy coping my name in our clanserver :(
Smokin' Guns: Lt.Colt
Colt Peacemaker
Drifter
 
Posts: 6
Joined: Mon Jan 17, 2011 8:56 pm
Location: Germany



Postby Colt Peacemaker » Tue Jan 18, 2011 6:36 pm

I think I must correct me:

I am new at the forum but I know a bit (over mapping, scripting, source-codes) out of other q3-based games (like ET, UrT and so on) :D
Smokin' Guns: Lt.Colt
Colt Peacemaker
Drifter
 
Posts: 6
Joined: Mon Jan 17, 2011 8:56 pm
Location: Germany



Lt.Colt = Haris

Postby TheDoctor » Tue Jan 18, 2011 6:44 pm

Haris, you are Yunus' cousin, remember? Well, in case you don't: I do :D .

BB wrote:> !alias @1474
private: Lt.Colt has 23 aliases:
Haris2201 (11x, last 09Aug2010 19:41),
-mW-Haris- (6x, last 09Jun2010 13:43),
DkLt.Colt (5x, last 11Jan2011 13:56),
SGPlayer (2x, last 16Dec2010 17:27),
-mW-XFire- (2x, last 20Feb2010 23:35),
8HydrogeN (1x, last 05Jun2010 20:16),
Lt.Colt (1x, last 06Jan2011 14:13),
HydrogeN (1x, last 04Jan2011 22:57),
ElKrakoto (1x, last 02Oct2010 18:38 ),
BigBrotherBot (1x, last 26Sep2010 18:00),
-=EL=-Burro! (1x, last 25Sep2010 16:47),
Yamaha! (1x, last 09Aug2010 19:40),
NRW//Wache (1x, last 10Jun2010 12:59),
Hyper (1x, last 07Jun2010 12:57),
Haris2201[TR] (1x, last 05Jun2010 23:45),
8Hacker (1x, last 05Jun2010 19:14),
Haris[TR] (1x, last 28May2010 18:34),
8X-8Fire (0x, last 19Feb2010 15:24),
8mW8Haris2 (0x, last 09May2010 13:31),
=EF=Cola (0x, last 04Jun2010 15:23),
<!BT!>Admin (0x, last 31May2010 19:54),
[FAIL]Killmancome (0x, last 21May2010 18:30),
Clint (0x, last 16May2010 06:28 )

I like how honest you were on 05Jun2010 19:14.
User avatar
TheDoctor
Smokin' Amigo!
 
Posts: 818
Joined: Sun Jun 06, 2010 3:31 am




Return to Saloon

Show Sidebar
Show Sidebar

User Control Panel

cron