SA-MP Forums Archive
DEtect holding - 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: DEtect holding (/showthread.php?tid=387560)



DEtect holding - Larry123 - 25.10.2012

Hello

I want to do a system, where i have to hold down key_submission for 5 seconds, then my engine starts.
How i detect when i have holded key_submission down for 5 seconds?

I mean, i know that command if (HOLDING( KEY_SUBMISSION)), but how i can detect how long i have holded it?(5 seconds i want)