[HELP]F8 Timer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]F8 Timer (
/showthread.php?tid=486301)
[HELP]F8 Timer -
denom - 08.01.2014
Is it possible to make a timer for f8 which will delay it for 2-3 seconds... Some trollers use that method when u fire at them they repeatedly clicking f8 which will cause no damage to them -_-... Thanks
Re: [HELP]F8 Timer -
offon - 08.01.2014
Uhm, isn't that a mod? However, you can use
Код:
OnPlayerKeyStateChange(...)
but I am not sure if you can detect the F8 key. Good luck!
Re: [HELP]F8 Timer -
SilentSoul - 08.01.2014
No , i don't think it's possible because to detect the pressed keys there's only one function 'OnPlayerKeyStateChange' and this is the only available
Keys.
Re: [HELP]F8 Timer -
denom - 08.01.2014
Its not a mod. I think its for screenshot. anyway thanks i might try it.
Re: [HELP]F8 Timer -
amirab - 08.01.2014
and i think it's not possible because F8 key is not defined
Re: [HELP]F8 Timer -
Konewka - 08.01.2014
It is not possible to use this key.
These are the only keys that can be used in SAMP. You have to consider other way of evading from this kind of situations. You can check whether a player has been shot (compare this to shooter data) and if his HP lowerd down, if not then ban him. I believe you will come up with something.