Forum

> > CS2D > Scripts > number pad , can it be used for a action ?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

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

15 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

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

TimeQuesT
User Off Offline

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

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

Rainoth
Moderator Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht