regards,
Forum
Scripts
Force a player to use a bind.
Force a player to use a bind.
7 replies
1

regards,
addbind function and
key hook. It won't let you overwrite client's controls though. example like:
"Type the button to do Reload"
and you have to say "R" or "r", w/e.
then next and etc.
Cure Pikachu has writtenhow that's working ?
1
2
2
addbind("space")
parse('bind space "say !help"')
@
Mora I want something that forces them not ask them for writing bindslike 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
bind in a script.
Cure Pikachu: thank you but still only work for the server player but not for other players. parse('bind space "say !help"') in there
Cure Pikachu: xd no i'm not that dumb i have put my function there menu(id,"Admin Menu,Mouse actions,Teleport,Save,Reload")
xdd thank you it works i just miss something there
1

Offline