21.02.2017, 16:44
(
Последний раз редактировалось weex; 21.02.2017 в 18:41.
)
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:
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
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; }
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