SA-MP Forums Archive
[HELP] Animations problem - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Animations problem (/showthread.php?tid=305987)



[HELP] Animations problem - c0GI - 24.12.2011

Hy everyone, I am using a RolePlayer gamemod server, and I have a Animations 160+ v.1.2f, and it work great!!! But I have a little problem with that script!!! When I use any Animation, the player next to me see an animation. But in my view, the charter(my man) is standing normaly(I dont see the animation)!!!!


Can anyone give explain to me, how i fix that or you do it for me?? PLEASE


How do I change to see the animation?

Here is the LoopingAnim code:

Quote:

LoopingAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
{
gPlayerUsingLoopingAnim[playerid] = 1;
ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
animation[playerid]++;
}




Re: [HELP] Animations problem - c0GI - 24.12.2011

Can you help me PLEASE!!! I need a help.


Re: [HELP] Animations problem - prisonliferp - 24.12.2011

I got the same problem, the best fix for that might be to get the player enter an interior and then leave it.. Otherwise I would guess you would have to try messing around with "OnPlayerUpdate" -To make it check if the player got?

Eventually try something similar to this:


Код:
public OnPlayerUpdate(playerid)
{
	GetPlayerSpecialAction(playerid);
	if
	GetPlayerSpecialAction(playerid,0);
	SetPlayerSpecialAction(playerid, 0);
	return 1;
}
(Code is not tested or anything, it was a simple suggestion example, I'm a noob scripter.)

It might also just be a general SA-MP Sync problem.

+rep if helped.


Re: [HELP] Animations problem - c0GI - 24.12.2011

It doesn't work!!!


Re: [HELP] Animations problem - prisonliferp - 24.12.2011

Did you just copy the code I made or did you try yourself?

-You cannot copy my code it wont work, it was a suggestion to what you could try yourself.


Re: [HELP] Animations problem - c0GI - 24.12.2011

aham! OK. I was used you script!! But I can't don't know how i fix it??


Re: [HELP] Animations problem - prisonliferp - 24.12.2011

I dont think you can.

It's a SA-MP Sync bug.. I think.. Sorry 'bout that mate

+Rep if I've been usefull


Re: [HELP] Animations problem - c0GI - 24.12.2011

Okej