SA-MP Forums Archive
Soundbug at SetPlayerSpecialAction() - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Soundbug at SetPlayerSpecialAction() (/showthread.php?tid=171148)



Soundbug at SetPlayerSpecialAction() - privatecitypage - 25.08.2010

Hi,

If a player a JetPack Uses, and then presses a button so that it goes away. Next he hears the jetpack without which he has one.

Hope you understand me ^ ^

Code:
	if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
	{
	        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
	        return 1;
	} else {
	        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
	        return 1;
	}



Re: Soundbug at SetPlayerSpecialAction() - Rac3r - 10.04.2012

Confirmed (Yesterday actually, before seeing this post today).

My anticheat removed a Jetpack, the sound remained. After being killed the sound had gone.

You could try playing a sound after resetting their special action from jetpack. A good sound id would be 1186.
Untested.


Re: Soundbug at SetPlayerSpecialAction() - SuperViper - 15.04.2012

pawn Code:
ClearAnimations(playerid);



Re: Soundbug at SetPlayerSpecialAction() - MP2 - 15.04.2012

I added a fix to Y_Less' fixes.inc for this:

https://sampforum.blast.hk/showthread.php?tid=292813