SA-MP Forums Archive
[Ajuda] Sincronizar animaзхes - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Sincronizar animaзхes (/showthread.php?tid=588182)



Sincronizar animaзхes - JuniorRiddle - 06.09.2015

Olб pessoal! Primeiramente bom dia!

Um amigo me pediu para dar uma mгo em um GM dele. Ele й base GF e eu encontrei um problema estranho.

Quando um jogador usa um comando de animaзгo, ele simplesmente funciona normal, mas, quando uma pessoa que nгo estava perto, no momento do uso do comando se aproxima. O jogador fica parado, de pй, como se nгo tivesse usado uma anim.

Gostaria de saber, se alguйm sabe o motivo desse bug, se ele й comum, e se existe alguma funзгo que eu poderia criar (jб que nгo encontrei nenhuma nativa) para sincronizar as animaзхes.

Agradecido.


Re: Sincronizar animaзхes - bruxo00 - 06.09.2015

PHP код:
ApplyAnimation(playeridanimlib[], animname[], Float:fDeltalooplockxlockyfreezetimeforcesync
forcesync : Set to 1 to make server sync the animation with all other players in streaming radius (optional). 2 works same as 1, but will ONLY apply the animation to streamed-in players, but NOT the actual player being animated (useful for npc animations and persistent animations when players are being streamed)