Posts: 352
Threads: 37
Joined: Jun 2012
Okay, thanks. Could you use ALS hooking for functions? Only redefining would cause conflicts with another includes that are hooking it, too.
I did it for you as I couldn't wait for the update.
PHP код:
#if defined _ALS_SetPlayerPos
#undef SetPlayerPos
#else
#define _ALS_SetPlayerPos
#endif
#if defined _ALS_SetPlayerPosFindZ
#undef SetPlayerPosFindZ
#else
#define _ALS_SetPlayerPosFindZ
#endif
#if defined _ALS_PutPlayerInVehicle
#undef PutPlayerInVehicle
#else
#define _ALS_PutPlayerInVehicle
#endif
#define SetPlayerPos AB_SetPlayerPos
#define SetPlayerPosFindZ AB_SetPlayerPosFindZ
#define PutPlayerInVehicle AB_PutPlayerInVehicle
Yup, ALS hooking is already used for functions in this version of the include - however the older version didn't have ALS hooking at all. Thanks though!
Posts: 352
Threads: 37
Joined: Jun 2012
Quote:
Originally Posted by Emmet_
Yup, ALS hooking is already used for functions in this version of the include - however the older version didn't have ALS hooking at all. Thanks though!
|
Ahh, damn... You had them listed strangely and I didn't notice that you had already did it. I thought I could be useful for once.
Posts: 175
Threads: 16
Joined: Sep 2013
Reputation:
0
That's what I was looking for..!
Updated the include, please re-download if you haven't already.
- Updated the hooking mechanisms.
- Detection should be more accurate than ever!
- Cleaned up some code.
Vehicle airbreak detection is on the way, I've been quite busy lately.
It's most likely being caused by the "OnPlayerUpdate" in your mode, not the include itself.
Posts: 352
Threads: 37
Joined: Jun 2012
This is giving false positives when teleporting between places on the same Z-level.
Posts: 731
Threads: 29
Joined: Feb 2012
Reputation:
0
How fast is it? I mean, on detection.
Posts: 2,938
Threads: 162
Joined: May 2010
Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by Kar
|
Wiz' already claimed that position... :/
He also posted the thread for it already.
Posts: 2,938
Threads: 162
Joined: May 2010
Doesn't matter, I've contributed to this in the past and I'm still helping with it as long as SA-MP is alive. The one Wiz posted is an OLD version (and I mean old... :")) too.. plus I have a less likely chance to 'quit' and stop updating or remove stuff.
Posts: 1,498
Threads: 110
Joined: Aug 2013
Quote:
Originally Posted by Kar
Doesn't matter, I've contributed to this in the past and I'm still helping with it as long as SA-MP is alive. The one Wiz posted is an OLD version (and I mean old... :")) too.. plus I have a less likely chance to 'quit' and stop updating or remove stuff.
|
As you wish , I will edit my thread so you can update yours maybe you'll be happy

? At least when you see something already claimed have a bit of respect to the one who posted first but okay no problem.
Posts: 381
Threads: 3
Joined: Nov 2015
Reputation:
0
Why cant yall just work together...
Posts: 2,938
Threads: 162
Joined: May 2010
Quote:
Originally Posted by Wizzard2H
As you wish , I will edit my thread so you can update yours maybe you'll be happy  ? At least when you see something already claimed have a bit of respect to the one who posted first but okay no problem.
|
Why does it matter.. lol respect? Man is it fame you want or something on this forum? You can keep yours posted too idk why you remove it. I don't really care. I'm just doing what I do. You can do what you do.
Posts: 6
Threads: 4
Joined: Sep 2014
Reputation:
0
Hey, it doesn't work for me. Maybe I have to update YSI or why.. i put the include and the public but it doesn't detect even if i use airbreak a lot.. Where is the problem!? thx.
When i test it on another gamemode i receive this:
public function lacks forward declaration (symbol "OnPlayerAirBreak")
Fixed sorry i used B instead of b