2021-06-23, 11:07 AM
is there any way?how can i check if a player is holding the KEY_SPRINT button?
[Pawn] Detect Holding Key
|
2021-06-23, 11:07 AM
is there any way?how can i check if a player is holding the KEY_SPRINT button?
2021-06-23, 11:24 AM
2021-06-23, 11:47 AM
is there any other way? because i'm not using OnPlayerKeyStateChange on holding key function
2021-06-23, 05:57 PM
(2021-06-23, 11:47 AM)GeorgeXCarl Wrote: is there any other way? because i'm not using OnPlayerKeyStateChange on holding key function https://open.mp/docs/scripting/functions/GetPlayerKeys Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
2021-06-23, 09:57 PM
(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 Check out Desolation Roleplay, where zombie AI and scavenging is bothered by player bandits!
2021-06-24, 11:06 AM
(2021-06-23, 09:57 PM)Awide Wrote:(2021-06-23, 11:47 AM)GeorgeXCarl Wrote: is there any other way? because i'm not using OnPlayerKeyStateChange on holding key function And what's the point of writing the exact same thing I did? :) Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics. |