SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 15/04/2018, 10:20 PM   #1
Twixxx
Little Clucker
 
Twixxx's Avatar
 
Join Date: Jun 2017
Posts: 6
Reputation: 3
Post key_pickupfix.inc

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 Code:
#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:

Code:
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
Twixxx is offline   Reply With Quote
Old 03/06/2018, 04:34 PM   #2
Chaprnks
Gangsta
 
Chaprnks's Avatar
 
Join Date: Sep 2007
Location: Soviet America
Posts: 731
Reputation: 57
Default Re: key_pickupfix.inc

Great concept! Here's the updated version (1.2.1), found it on the native forum you posted it on

https://pastebin.com/PSJQ3h9x
__________________
Chaprnks is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 08:22 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.