Forum
CS2D Scripts number pad , can it be used for a action ?number pad , can it be used for a action ?
15 replies 1
Rainoth has written
No, it's not possible. Not in CS2D as it is right now.
no it's actually possible with tricks. Set 1 weapon each number with empty ammo and select hook and simple tricks can make it possible
bind is what you need
example:
bind "p" "say anusmenschen"
would send a say command to the server.
like : + button and the action adminmenu .
First do this bind client sided
1
bind "+" "say !domymenubiatch"
Then add this to your lua
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
addhook ("say", "iSay"); function iSay(id, txt) 	if ((txt == "!domymenubiatch") and (player(id, "usgn") == "your usgn id here")) then 		menu(id, "zwickl, zwickl, zwickl, zwickl"); 		return 1; 	end 	return 0; end
http://youtu.be/z8tTaRAEnyU
Step 1 :
Open controls
Step 2 : Select any bind (like use........E)
Step 3 : Click numpad 1
Step 4 : See what it writes (in VADemon's and probably your case it's kp_1)
Step 5 : Open console (~ button if german language is on I think, if not you can set it up to open from controls)
Step 6 : Write 'bind <key name> <action>' where key name in this case is "kp_1"
Step 7 : Click Enter/Return button
Example of a complete bind (in console)
bind "kp_1" "say I do not know how to set up controls even when people explain it to me multiple times"
Done.
1