Weapon Anim with no UsePlayerPedAnims
#1

Someone could help me to fix my script?

I want to:
In my server players when using hevy weapons, they do animation...
Like on UsePlayerPedAnims();
But without this...

I tried this:
Код:
public OnPlayerUpdate(playerid) 
{
	if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) 
	{
		new w = GetPlayerWeapon(playerid);
		if(w == 25 || w == 27 || w == 30 || w == 31 || w == 33 || w == 34) {
			if(GetPlayerSpeed(playerid, true) >= 1) {
				ApplyAnimation(playerid, "PED", "RUN_ARMED", 4.1, 0, 1, 1, 0, 0);
			}
			else {
				ApplyAnimation(playerid, "PED", "IDLE_ARMED", 4.1, 0, 1, 1, 0, 0);
			}
		}
	}
	return 1;
}
But it's not work well...
Players are freezed using animation...

Like this
if(GetPlayerSpeed(playerid, true) >= 1) {
ApplyAnimation(playerid, "PED", "RUN_ARMED", 4.1, 0, 1, 1, 0, 0);
}
Run the anim with no stop, can not even move to another direction
Reply


Messages In This Thread
Weapon Anim with no UsePlayerPedAnims - by weex - 21.02.2017, 16:44
Re: Weapon Anim with no UsePlayerPedAnims - by maikons - 22.02.2017, 09:32
Re: Weapon Anim with no UsePlayerPedAnims - by weex - 22.02.2017, 22:00
Re: Weapon Anim with no UsePlayerPedAnims - by Unte99 - 22.02.2017, 22:12
Re: Weapon Anim with no UsePlayerPedAnims - by maikons - 23.02.2017, 02:41
Re: Weapon Anim with no UsePlayerPedAnims - by maikons - 24.02.2017, 09:09

Forum Jump:


Users browsing this thread: 1 Guest(s)