Forum

> > CS2D > General > binding problems.
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch binding problems.

11 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt binding problems.

sder2344
User Off Offline

Zitieren
I am currently trying to create my first script: I have placed everything in autoexec but there are one problems
First... This is what my binds look like:
-----------------------------------------------------------------
bind "F6" "ak47; m4a1; vesthelm; deagle; hegren; buyammo1; buyammo2; flash; flash"
-----------------------------------------------------------------
So i go into the game, the bind above works in the beginning of cs2d for about 5 minutes. after those 5 minutes the binds i have stop working. Every single bind dies for some reason.

Any Solution?

Another thing. I try to make a bind so i can use "sayteam" with a press of a button. BUT i want to apply those binds to keys on my KeyPad. If I wanted to bind those, would i use
bind "KP_#" "sayteam -text-"
?
This is what mine looks like
--------------------------------------------------------------------bind "KP_2" "sayteam V_V Enemy South of my Position V_V"

Could anybody please tell me what i did wrong and the key input( as in: bind "-THIS IS WHAT IM TALKING ABOUT- "some command" for the KeyPad.

alt Re: binding problems.

Starkkz
Moderator Off Offline

Zitieren
do not try to put dofile exec puts (the address of the folder ")
and the team was to say or think, but to modify the F6 you create a lua (function) autobuy

Zitat
addhook("serveraction","sa")
function sa(id,act)
team = player(id'team')
money = player(id'money')
      if (act=="3") and if (team=="1") then
           parse("equip "..id.." 30")
           parse("equip "..id.." 58")
           parse("equip "..id.." 3")
           parse("equip "..id.." 51")
           parse("equip "..id.." 61")
           parse("equip "..id.." 62")
           parse("equip "..id.." 52")
           parse("equip "..id.." 52")
           parse("setmoney "..id.." "..money.."-4550")
      end
      if (act=="3") and if (team=="2") then
           parse("equip "..id.." 32")
           parse("equip "..id.." 58")
           parse("equip "..id.." 3")
           parse("equip "..id.." 51")
           parse("equip "..id.." 61")
           parse("equip "..id.." 62")
           parse("equip "..id.." 52")
           parse("equip "..id.." 52")
           parse("setmoney "..id.." "..money.."-4550")
      end
end
end
end


Only with F3 not F6
2× editiert, zuletzt 17.11.09 03:15:03

alt Re: binding problems.

DC
Admin Off Offline

Zitieren
sder2344: this doesn't happen here. Maybe you have a strange bind which unbinds other binds or something. I can't find the reason for that.
About the numpad thing: what happens? is numlock enabled? press the "num" key so the num-LED on your keyboard is on.

Starkkz: that's not a solution. he obviously wants to have a buyscript. Your Lua script only works if you have RCon access or if you are hosting the game. So it's worthless in most cases and moreover it's a very dirty and complicated solution.

alt Re: binding problems.

sder2344
User Off Offline

Zitieren
DC: I have the numlock enabled. The LED is bright and the keypad works. I found an article from fpsbanana that you need to go to the properties of the of the autoexec.cfg and tick "read-only". Would that affect the script at all? As I said earlier , I am a beginner in using binds and what not so i dont know much :x


But, I don't know how to use the "sayteam" command for a bind. I'm still trying to figure that one out. I have a command for each digit on the numpad key. I'm asking how to use "sayteam" command in a bind like:

bind "KP_8" "sayteam ^ ^ Enemies North ^ ^"

alt Re: binding problems.

sder2344
User Off Offline

Zitieren
Flacko: Oh. Well then is there a way that i can open my options menu without canceling my binds? Sometimes i change my player name to something completely random. I like doing that dont ask why

alt Re: binding problems.

sonnenschein
User Off Offline

Zitieren
sder2344 hat geschrieben
Flacko: Oh. Well then is there a way that i can open my options menu without canceling my binds? Sometimes i change my player name to something completely random. I like doing that dont ask why

Add them in the control.cfg and pwn

EDIT: CS2D regenerates the control.cfg, so it doesn't work

alt Re: binding problems.

sder2344
User Off Offline

Zitieren
@LinuxGuy: Would i set them up as i did with my autoexec.cfg? And what would adding them to the controls do. Could you please give me an example to what yuo are talking about?

alt Re: binding problems.

sder2344
User Off Offline

Zitieren
When i use the controls, do i have to put a space or a tab?

"buy;awp;deagle;hegren;vesthelm" (here) "Buy crap"

alt Re: binding problems.

DC
Admin Off Offline

Zitieren
it should have been fixed with the latest release (0116) that your binds (in autoexec.cfg) get deleted when opening the options menu.

however you should still NEVER use the controls.cfg (don't mix it up with controls.lst) to add your own binds because there you will still lose them when opening the options menu.

@sder2344: tab (as it is done in all the other lines). maybe spaces work as well.
1× editiert, zuletzt 18.11.09 01:37:26
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht