General > Developers Corner

advanced keybind help

(1/2) > >>

Michael Brady:
im trying to make a keybind the person I'm looking at and also one that targets the last one to say something in chat(could this be done with admin chat only) I would really apriciate help.

iViscosity:
I'm confused... what exactly are you trying to do with the keybind?

Michael Brady:
for example lets say kick the person I currently have the center of my screen on(harder one/impossible)

or somthinng that may be doable. player says something in admin chat, I press bind and goto the player since he was the last one to say somthing

iViscosity:

--- Quote from: Michael Brady on July 10, 2016, 06:57:27 PM ---for example lets say kick the person I currently have the center of my screen on(harder one/impossible)

or somthinng that may be doable. player says something in admin chat, I press bind and goto the player since he was the last one to say somthing

--- End quote ---

That first one is actually extremely easy.
--- Code: ---bind "key" "ulx kick @"
--- End code ---
but I don't know if you could actually do the second one... I could look into it and see if I could find a way.


Bind targetting if you didn't know:


^ = yourself
* = everyone
@ = target you're looking at
! = everything but (followed by above (ex. !^ = everyone but yourself))

Michael Brady:
wow thanks lol the others I knew about but not the @

Navigation

[0] Message Index

[#] Next page

Go to full version