regards,
Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Force a player to use a bind.
7 Antworten![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)
regards,
![cs2d lua cmd](img/i_codehelp.png)
![cs2d lua hook](img/i_codehelp.png)
example like:
"Type the button to do Reload"
and you have to say "R" or "r", w/e.
then next and etc.
![user](img/i_friend.png)
how that's working ?
1
2
2
addbind("space") parse('bind space "say !help"')
@
![user](img/i_friend.png)
like this
1
2
3
4
2
3
4
timer(40,"playerbind","") function playerbind() parse(bind leftalt "say !help") end
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
addbind("space") -- Add a custom bind for spacebar addhook("key","_keybind") function _keybind(id,key,state) -- id parameter is for player id 	if state == 1 then -- If key is *only* pressed down 		if key == "space" then -- If key is spacebar 			-- Whatever saying !help is supposed to do, put it here 		end 	end end
![thread](img/i_forum.png)
![cs2d](img/icons/cs2d.png)
![cs2d cmd](img/i_codehelp.png)
![user](img/i_friend.png)
parse('bind space "say !help"')in there
![](img/smiles/ugly.gif)
![user](img/i_friend.png)
menu(id,"Admin Menu,Mouse actions,Teleport,Save,Reload")
xdd thank you it works i just miss something there
![](img/smiles/heart.gif)
![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)