[Pawn] Detect Holding Key - Printable Version +- Burgershot (https://www.burgershot.gg) +-- Forum: SA-MP (https://www.burgershot.gg/forumdisplay.php?fid=3) +--- Forum: Pawn Scripting (https://www.burgershot.gg/forumdisplay.php?fid=10) +--- Thread: [Pawn] Detect Holding Key (/showthread.php?tid=2130) |
Detect Holding Key - GeorgeXCarl - 2021-06-23 is there any way how can i check if a player is holding the KEY_SPRINT button? RE: Detect Holding Key - Kwarde - 2021-06-23 https://open.mp/en/docs/scripting/callbacks/OnPlayerKeyStateChange Look for "Detecting holding a key" RE: Detect Holding Key - GeorgeXCarl - 2021-06-23 is there any other way? because i'm not using OnPlayerKeyStateChange on holding key function RE: Detect Holding Key - Pinch - 2021-06-23 (2021-06-23, 11:47 AM)GeorgeXCarl Wrote: is there any other way? because i'm not using OnPlayerKeyStateChange on holding key functionhttps://open.mp/docs/scripting/functions/GetPlayerKeys RE: Detect Holding Key - Awide - 2021-06-23 (2021-06-23, 11:47 AM)GeorgeXCarl Wrote: is there any other way? because i'm not using OnPlayerKeyStateChange on holding key function You could either use that or do GetPlayerKeys. https://open.mp/docs/scripting/functions/GetPlayerKeys RE: Detect Holding Key - Pinch - 2021-06-24 (2021-06-23, 09:57 PM)Awide Wrote:And what's the point of writing the exact same thing I did? :)(2021-06-23, 11:47 AM)GeorgeXCarl Wrote: is there any other way? because i'm not using OnPlayerKeyStateChange on holding key function |