01.06.2016, 20:02
Hello.
I'm doing a reload command but I have some troubles.
First is with Applying an animation. If the player doesn't move during the animation he will be freeze. The function is working anyway.
The second is with PlayerPlaySound. Just, there is no sound..
Have you other sound ID for reloading weapons?
Thanks for your help.
I'm doing a reload command but I have some troubles.
First is with Applying an animation. If the player doesn't move during the animation he will be freeze. The function is working anyway.
PHP код:
forward noAnim(playerid);
public noAnim(playerid)
{
if(crounch(playerid)) ApplyAnimation(playerid, "PED", "GUNCROUCHFWD", 4.1, 0, 0, 0, 0, 1, 1), SCM(playerid, -1, "crounch");
else ApplyAnimation(playerid, "PED", "IDLE_STANCE", 4.1, 0, 0, 0, 0, 1, 1), SCM(playerid, -1, "not crounch");
SCM(playerid, -1, "noAnim - Done");
/*
ApplyAnimation(playerid, "PED", "IDLE_STANCE", 4.1, 0, 0, 0, 0, 1, 1) // Debout
ApplyAnimation(playerid, "PED", "WEAPON_CROUCH", 4.1, 0, 0, 0, 0, 1, 1) // Crounch
ApplyAnimation(playerid, "PED", "GUNCROUCHFWD", 4.1, 0, 0, 0, 0, 1, 1) // Crounch
*/
return 1;
}
PHP код:
PlayerPlaySound(playerid, 36401, 0, 0, 0);
Thanks for your help.