[Include] New SA-MP callbacks!
#60

Quote:
Originally Posted by Kar
Посмотреть сообщение
I've made forward OnPlayerDisableCursor(playerid, lastColour);

but forward OnPlayerDisableCursor(playerid, Text:textdrawid); would either require a client sided plugin (like what iPLEOMAX did for his textdraw creation tool) or a sa-mp update with the necessary updates.

Continue to do what you are doing Emmet_!

I hope you accounted for weapon skill / UsePlayerPedAnims() in OnPlayerAntiReload!
Thanks. I added a "hovercolor" parameter to the callback in the recent update. To work around the weapon skill problem, I detect 34 shots instead of 17, and so on for other dual weapons, but in the future I might add a "GetPlayerSkillLevel" hook.

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
I was actually thinking about

pawn Код:
native OnPlayerAnimationFinish(playerid, animname[]);
But it would be hard, cuz we need to know when the animation actually finishes. I don't know if that is possible, maybe some documentation is hidden in GTA SA files, that might be useful. Honestly, that would be awesome to have that.
Not a bad idea. It's actually pretty easy lol, it can be done by deferring the timer that stores the player's animation index, and constantly checking if the player's animation index changes abruptly, and if so, call the function.

Edit: I've tested this a few times, but I need other users to confirm that it works. Download the new version from the first post and include it in any script that uses "ApplyAnimation", and compile with the snippet below:

pawn Код:
public OnPlayerAnimationFinish(playerid, animlib[], animname[]) {
    new string[64];

    format(string, sizeof(string), "Library: %s, Name: %s", animlib, animname);

    return SendClientMessage(playerid, 0xFFFFFFFF, string);
}
Reply


Messages In This Thread
New SA-MP callbacks! - by Emmet_ - 26.01.2014, 16:01
Re: New SA-MP callbacks! - by Mystique - 26.01.2014, 16:06
Re: New SA-MP callbacks! - by Abagail - 26.01.2014, 16:06
Re: New SA-MP callbacks! - by iZN - 26.01.2014, 16:34
Re: New SA-MP callbacks! - by Niko_boy - 26.01.2014, 16:34
Re: New SA-MP callbacks! - by Jimmy0wns - 26.01.2014, 16:34
Re: New SA-MP callbacks! - by Ryan_Bowe - 26.01.2014, 16:41
Re: New SA-MP callbacks! - by PT - 26.01.2014, 16:52
Re: New SA-MP callbacks! - by Jimmy0wns - 26.01.2014, 16:53
Re: New SA-MP callbacks! - by QuaTTrO - 26.01.2014, 17:21
Re: New SA-MP callbacks! - by Luis- - 26.01.2014, 17:49
Re: New SA-MP callbacks! - by QuaTTrO - 26.01.2014, 17:51
Re: New SA-MP callbacks! - by Pottus - 26.01.2014, 17:53
Re: New SA-MP callbacks! - by Grig - 26.01.2014, 17:55
Re: New SA-MP callbacks! - by RedWingz - 26.01.2014, 18:09
Re: New SA-MP callbacks! - by Edvin - 26.01.2014, 19:14
Re: New SA-MP callbacks! - by kooltuO - 26.01.2014, 21:26
Re: New SA-MP callbacks! - by Emmet_ - 26.01.2014, 21:29
Re: New SA-MP callbacks! - by Patrick - 26.01.2014, 22:25
Re: New SA-MP callbacks! - by Lordzy - 26.01.2014, 23:09
Re: New SA-MP callbacks! - by LikeNPC - 27.01.2014, 03:16
Re: New SA-MP callbacks! - by Ballu Miaa - 27.01.2014, 03:51
Re: New SA-MP callbacks! - by Emmet_ - 27.01.2014, 08:37
Re: New SA-MP callbacks! - by Rube - 27.01.2014, 10:41
Re: New SA-MP callbacks! - by kristo - 27.01.2014, 13:47
Re: New SA-MP callbacks! - by cr33d - 27.01.2014, 14:13
Re: New SA-MP callbacks! - by EmilLykke - 27.01.2014, 14:26
Re: New SA-MP callbacks! - by kooltuO - 28.01.2014, 12:15
Re: New SA-MP callbacks! - by cr33d - 28.01.2014, 18:57
Re: New SA-MP callbacks! - by Emmet_ - 28.01.2014, 19:53
Re: New SA-MP callbacks! - by kN1GhT - 29.01.2014, 09:21
Re: New SA-MP callbacks! - by cr33d - 29.01.2014, 10:21
Re: New SA-MP callbacks! - by Optimus_Sprite - 29.01.2014, 11:55
Re: New SA-MP callbacks! - by Luis- - 29.01.2014, 12:12
Re: New SA-MP callbacks! - by Emmet_ - 29.01.2014, 12:32
Re: New SA-MP callbacks! - by Luis- - 29.01.2014, 12:37
Re: New SA-MP callbacks! - by im - 29.01.2014, 12:49
Re: New SA-MP callbacks! - by xF4Life - 29.01.2014, 21:35
Re: New SA-MP callbacks! - by Emmet_ - 31.01.2014, 20:45
Re: New SA-MP callbacks! - by PT - 01.02.2014, 17:45
Re: New SA-MP callbacks! - by TheFlyer - 01.02.2014, 19:01
Re: New SA-MP callbacks! - by Optimus_Sprite - 02.02.2014, 08:31
Re: New SA-MP callbacks! - by Emmet_ - 02.02.2014, 15:07
Re: New SA-MP callbacks! - by PT - 02.02.2014, 15:41
Re: New SA-MP callbacks! - by Konstantinos - 02.02.2014, 15:45
Re: New SA-MP callbacks! - by DaniceMcHarley - 02.02.2014, 15:57
Re: New SA-MP callbacks! - by Emmet_ - 03.02.2014, 04:07
Re: New SA-MP callbacks! - by GiamPy. - 03.02.2014, 20:55
Re: New SA-MP callbacks! - by Abagail - 09.02.2014, 00:06
Re: New SA-MP callbacks! - by iBeast - 12.02.2014, 09:14
Re: New SA-MP callbacks! - by Emmet_ - 12.02.2014, 09:27
Re: New SA-MP callbacks! - by iBeast - 12.02.2014, 12:22
Re: New SA-MP callbacks! - by Rube - 12.02.2014, 13:15
Re: New SA-MP callbacks! - by Fornew - 12.02.2014, 14:04
Re: New SA-MP callbacks! - by Duke24 - 12.02.2014, 14:14
Re: New SA-MP callbacks! - by Translator - 12.02.2014, 14:21
Re: New SA-MP callbacks! - by Patrick_ - 13.02.2014, 17:08
Re: New SA-MP callbacks! - by Riddick94 - 16.05.2014, 13:41
Re: New SA-MP callbacks! - by Lordzy - 16.05.2014, 13:58
Re: New SA-MP callbacks! - by Emmet_ - 16.05.2014, 19:40
Re: New SA-MP callbacks! - by Riddick94 - 16.05.2014, 22:53
Re : New SA-MP callbacks! - by mirou123 - 17.05.2014, 12:08
Re: Re : New SA-MP callbacks! - by Emmet_ - 17.05.2014, 12:45
Re : Re: Re : New SA-MP callbacks! - by mirou123 - 17.05.2014, 16:55
Re: New SA-MP callbacks! - by iFarbod - 20.05.2014, 08:49
Re: New SA-MP callbacks! - by GeekSiMo - 24.05.2014, 19:04
Re: New SA-MP callbacks! - by Kemtor - 25.05.2014, 13:17
Re: New SA-MP callbacks! - by carl0o0s - 28.05.2014, 10:45
Re: New SA-MP callbacks! - by iFiras - 28.05.2014, 10:51
Re: New SA-MP callbacks! - by DamonD - 31.05.2014, 12:45
Re: New SA-MP callbacks! - by Abagail - 31.05.2014, 23:58
Re: New SA-MP callbacks! - by Translator - 01.06.2014, 10:00
Re: New SA-MP callbacks! - by Emmet_ - 01.06.2014, 12:40
Re: New SA-MP callbacks! - by Inn0cent - 01.06.2014, 17:52
Re: New SA-MP callbacks! - by Luis- - 01.06.2014, 22:01
Re: New SA-MP callbacks! - by Emmet_ - 02.06.2014, 03:04
Re: New SA-MP callbacks! - by Translator - 02.06.2014, 13:06
Re: New SA-MP callbacks! - by Luis- - 02.06.2014, 13:31
Re : New SA-MP callbacks! - by S4t3K - 02.06.2014, 17:26
Re: Re : New SA-MP callbacks! - by Patrick - 02.06.2014, 17:46
Re : New SA-MP callbacks! - by S4t3K - 02.06.2014, 18:09
Respuesta: New SA-MP callbacks! - by Swedky - 03.06.2014, 16:38
Re: New SA-MP callbacks! - by Parallex - 06.06.2014, 08:26
Re: New SA-MP callbacks! - by PT - 06.06.2014, 08:32
Re: New SA-MP callbacks! - by fordawinzz - 06.06.2014, 11:16
Re: New SA-MP callbacks! - by maximthepain - 23.07.2014, 18:47
Re: New SA-MP callbacks! - by Twizted - 23.07.2014, 20:12
Re: New SA-MP callbacks! - by gicu - 15.08.2014, 06:02
Re: New SA-MP callbacks! - by Team_PRO - 15.08.2014, 06:40
Re: New SA-MP callbacks! - by kristo - 15.08.2014, 08:07
Re: New SA-MP callbacks! - by Rudy_ - 19.08.2014, 19:05
AW: New SA-MP callbacks! - by Nils94 - 24.08.2014, 23:20
Re: AW: New SA-MP callbacks! - by Emmet_ - 25.08.2014, 01:36
Re: AW: New SA-MP callbacks! - by Ryan_Bowe - 25.08.2014, 01:40
AW: New SA-MP callbacks! - by Azure - 06.09.2014, 10:31
Re: New SA-MP callbacks! - by Emmet_ - 08.09.2014, 03:02
Re: New SA-MP callbacks! - by Unknown1234 - 29.09.2014, 10:10
Re: New SA-MP callbacks! - by Emmet_ - 30.09.2014, 11:14
Re: New SA-MP callbacks! - by GwENiko - 30.09.2014, 17:00
Re: New SA-MP callbacks! - by Rudy_ - 30.09.2014, 17:05
Re: New SA-MP callbacks! - by Unknown1234 - 30.09.2014, 19:34
Re: New SA-MP callbacks! - by GwENiko - 30.09.2014, 20:06
Re: New SA-MP callbacks! - by Emmet_ - 30.09.2014, 20:18
Re: New SA-MP callbacks! - by GwENiko - 30.09.2014, 20:59
Re: New SA-MP callbacks! - by Emmet_ - 30.09.2014, 21:17
Re: New SA-MP callbacks! - by GwENiko - 30.09.2014, 21:50
Re: New SA-MP callbacks! - by Emmet_ - 30.09.2014, 21:52
Re: New SA-MP callbacks! - by GwENiko - 30.09.2014, 22:37
Re: New SA-MP callbacks! - by SWGamer - 01.10.2014, 11:53
Re: New SA-MP callbacks! - by Emmet_ - 01.10.2014, 19:49
Re: New SA-MP callbacks! - by Evocator - 01.10.2014, 20:36
Re: New SA-MP callbacks! - by Abagail - 01.10.2014, 20:45
Re: New SA-MP callbacks! - by Rudy_ - 02.10.2014, 07:47
Re: New SA-MP callbacks! - by Emmet_ - 02.10.2014, 07:51
Re: New SA-MP callbacks! - by SWGamer - 02.10.2014, 11:14
Re: New SA-MP callbacks! - by gurmani11 - 02.10.2014, 11:26
Re: New SA-MP callbacks! - by Emmet_ - 02.10.2014, 12:21
Re: New SA-MP callbacks! - by PMH - 02.10.2014, 12:41
Re: New SA-MP callbacks! - by Emmet_ - 02.10.2014, 12:46
Re: New SA-MP callbacks! - by Rudy_ - 02.10.2014, 18:04
Re: New SA-MP callbacks! - by Evocator - 02.10.2014, 18:25
Re: New SA-MP callbacks! - by Rudy_ - 02.10.2014, 18:26
Re: New SA-MP callbacks! - by Emmet_ - 03.10.2014, 00:13
Re: New SA-MP callbacks! - by Emmet_ - 10.12.2014, 07:10
Re: New SA-MP callbacks! - by Lordzy - 31.12.2014, 12:58
Re: New SA-MP callbacks! - by Emmet_ - 10.02.2015, 00:46
Re: New SA-MP callbacks! - by Luis- - 10.02.2015, 02:24
Re: New SA-MP callbacks! - by Emmet_ - 13.03.2015, 09:18
Re: New SA-MP callbacks! - by Sellize - 13.03.2015, 09:43
Re: New SA-MP callbacks! - by vannesenn - 13.03.2015, 23:16
Re: New SA-MP callbacks! - by Emmet_ - 16.03.2015, 10:31
Re: New SA-MP callbacks! - by Nabster - 21.03.2015, 16:43
Re: New SA-MP callbacks! - by Emmet_ - 21.03.2015, 16:48
Re: New SA-MP callbacks! - by ToiletDuck - 21.04.2015, 05:34
Re: New SA-MP callbacks! - by N0FeaR - 14.12.2015, 15:04
Re: New SA-MP callbacks! - by blackhawk871 - 16.12.2015, 10:20
Re: New SA-MP callbacks! - by Lucky13 - 24.01.2016, 23:09
Re: New SA-MP callbacks! - by Hellman92 - 20.02.2016, 09:09
Re: New SA-MP callbacks! - by SyS - 20.02.2016, 09:16
Re: New SA-MP callbacks! - by vannesenn - 21.02.2016, 12:06
Re: New SA-MP callbacks! - by Emmet_ - 25.02.2016, 14:09
Re: New SA-MP callbacks! - by Max_Andolini - 25.02.2016, 16:11
Re: New SA-MP callbacks! - by katumas - 25.02.2016, 18:02
Re: New SA-MP callbacks! - by katumas - 26.02.2016, 22:04
Re: New SA-MP callbacks! - by Kar - 28.02.2016, 21:30
Re: New SA-MP callbacks! - by Emmet_ - 29.02.2016, 01:06
Re: New SA-MP callbacks! - by Rocket16 - 29.02.2016, 02:07
Re: New SA-MP callbacks! - by Emmet_ - 29.02.2016, 03:57
Re: New SA-MP callbacks! - by ]Rafaellos[ - 29.02.2016, 05:13
Re: New SA-MP callbacks! - by Emmet_ - 29.02.2016, 05:44
Re: New SA-MP callbacks! - by JokeyL - 29.02.2016, 07:46
Re: New SA-MP callbacks! - by FreAkeD - 29.02.2016, 08:50
Re: New SA-MP callbacks! - by itsCody - 02.03.2016, 03:44
Re: New SA-MP callbacks! - by Crayder - 02.03.2016, 04:21
Re: New SA-MP callbacks! - by vannesenn - 20.05.2016, 17:56
Re: New SA-MP callbacks! - by Donboo - 17.07.2016, 22:28
Re: New SA-MP callbacks! - by Logic_ - 18.07.2016, 06:55
Re: New SA-MP callbacks! - by DRIFT_HUNTER - 18.07.2016, 07:13
Re: New SA-MP callbacks! - by Logic_ - 18.07.2016, 07:18
Re: New SA-MP callbacks! - by iKarim - 18.07.2016, 07:31
Re: New SA-MP callbacks! - by Logic_ - 18.07.2016, 07:36
Re: New SA-MP callbacks! - by iKarim - 18.07.2016, 07:41
Re: New SA-MP callbacks! - by DRIFT_HUNTER - 18.07.2016, 11:36
Re: New SA-MP callbacks! - by Logic_ - 18.07.2016, 13:03
Re: New SA-MP callbacks! - by rt-2 - 29.03.2017, 00:27
Re: New SA-MP callbacks! - by Zorono - 24.05.2017, 17:01
Respuesta: Re: New SA-MP callbacks! - by Eistein - 24.05.2017, 17:41
Re: Respuesta: Re: New SA-MP callbacks! - by Zorono - 24.05.2017, 17:44
Re: New SA-MP callbacks! - by RxErT - 24.05.2017, 18:33
Re: New SA-MP callbacks! - by Zorono - 24.05.2017, 18:41
Re: New SA-MP callbacks! - by RxErT - 24.05.2017, 19:10
Re: New SA-MP callbacks! - by DRIFT_HUNTER - 24.05.2017, 21:48
Re: New SA-MP callbacks! - by Zorono - 24.05.2017, 22:38
Re: Respuesta: Re: New SA-MP callbacks! - by rt-2 - 25.05.2017, 04:09
Re: New SA-MP callbacks! - by RxErT - 25.05.2017, 07:29

Forum Jump:


Users browsing this thread: 20 Guest(s)