Forum
Scripts
number pad , can it be used for a action ?
number pad , can it be used for a action ?
15 replies
1

Rainoth has writtenNo, 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
Kirito2K:
VADemon already told you how.
bind is what you need example:
bind "p" "say anusmenschen"
would send a say command to the server.
TimeQuesT: i know but i want to use the number pad , please understand before posting any thing !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.
, @
Rainoth: I just understand you now , and i think to remove them make it , bind "L" "say " , maybe like that ??
Kirito2K either
unbindall or bind "L" "" or you edit the config files directly.
VADemon: oh , i just now got all of them
and @
Rainoth: it's not kp_1 , it's kp_end ..
1

Offline
