[Include] key_pickupfix.inc - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] key_pickupfix.inc (
/showthread.php?tid=652624)
key_pickupfix.inc -
Twixxx - 15.04.2018
Description:This include was written to eliminate the known problem of re-picking pickup bug by using a key. So, when you stand on a pickup, you need to press the assigned key to make it work.
Advantages of this implementation:• Using a key - In this implementation, no dynamic zones are used, no interception of functions for creating pickups, no distance comparisons, etc, which could overload the server.
• Configurable key - by default, the specified key is ALT (KEY_WALK), but if you want, you can change this key by specifying only one macro in your code (see below).
• This include supports streamer plugin.
• Only one body movement - you need only to connect this include, there is no need to conduct any more actions (exception: you will want to change the specified key)
Example:
PHP код:
#define KEY_PICKUPFIX_USED_KEY KEY_WALK
#include <key_pickupfix.inc>
Author: Twixxx (a.k.a whale/Twixyck)
Source code: https://pastebin.com/zRTErCd1
Download: https://www.dropbox.com/s/8jalsqbao7...upfix.inc?dl=0
Changelog:
Код:
• 14.04.2018 | v1.0 - Release.
• 15.04.2018 | v1.1 - Added compatibility of static enumeration with old versions of the compiler.
P.S I am sorry for my middling english
Re: key_pickupfix.inc -
Chaprnks - 03.06.2018
Great concept! Here's the updated version (1.2.1), found it on the native forum you posted it on
https://pastebin.com/PSJQ3h9x