GetPlayerKeys - 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: GetPlayerKeys (
/showthread.php?tid=449868)
GetPlayerKeys -
franco2l - 10.07.2013
Hello y'all! I'm creating a script, where, if you got shoot at legs you will walk with a limp ( WALK_FAT_OLD ). I use
this include. I use GetPlayerKeys for observe if the player uses the directional keys, but it seems doesn't work as it ought to work, because sometimes if I press the 'W' key, the system thinks I use 'S' key or conversely, in the same way, the 'A' key with the 'D' key. So I designed the script
thus. The problem is that sometimes I must stop the player for change the direction. How should I resolve the problem?
* Sorry for my bad English, I'm not a native speaker.