need help with detect player press key
#1

as the title say , i have some problem to detect what player press key

I want to if player press "J" on keyboard it shown Progress bar with Textdraw , and if player release the key it the progress bar and textdraw will hiden.

Can i use OnPlayerKeyStateChange to make this ? and how to make it ? can you gimme example for the format ?
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
you've everything you need to build your code there, good luck.
Reply
#3

Here's a list with all the available keys, button "J" cannot be detected.

Holding a specific key will show the progress bar: https://sampwiki.blast.hk/wiki/OnPlayerK..._holding_a_key
Releasing that key will hide the textdraw: https://sampwiki.blast.hk/wiki/OnPlayerK...eleasing_a_key
Reply
#4

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Here's a list with all the available keys, button "J" cannot be detected.

Holding a specific key will show the progress bar: https://sampwiki.blast.hk/wiki/OnPlayerK..._holding_a_key
Releasing that key will hide the textdraw: https://sampwiki.blast.hk/wiki/OnPlayerK...eleasing_a_key
You could have let him find it himself while studying the whole contents of OnPlayerKeyStateChange but ok
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)