Forum

> > CS2D > Scripts > number pad , can it be used for a action ?
Forums overviewCS2D overview Scripts overviewLog in to reply

English number pad , can it be used for a action ?

15 replies
To the start Previous 1 Next To the start

old Re: number pad , can it be used for a action ?

TimeQuesT
User Off Offline

Quote
Cheesus. Be a way more creative...

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
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

Or this >

old Re: number pad , can it be used for a action ?

Rainoth
Moderator Off Offline

Quote
Look dude. This is setting up controls. Like in menu except that instead of clicking, you write.

Step 1 :
Open controls
Step 2 : Select any bind (like use........E)
Step 3 : Click numpad 1
Step 4 : See what it writes (in user 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.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview