ApplyAnimation & PlayerPlaySound problems
#1

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.
PHP код:
forward noAnim(playerid);
public 
noAnim(playerid)
{
    if(
crounch(playerid)) ApplyAnimation(playerid"PED""GUNCROUCHFWD"4.1000011), SCM(playerid, -1"crounch");
    else 
ApplyAnimation(playerid"PED""IDLE_STANCE"4.1000011), 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;

The second is with PlayerPlaySound. Just, there is no sound..
PHP код:
PlayerPlaySound(playerid36401000); 
Have you other sound ID for reloading weapons?
Thanks for your help.
Reply


Messages In This Thread
ApplyAnimation & PlayerPlaySound problems - by Dayrion - 01.06.2016, 20:02
Re: ApplyAnimation & PlayerPlaySound problems - by OmegaKiller72 - 01.06.2016, 23:22
Re: ApplyAnimation & PlayerPlaySound problems - by Dayrion - 02.06.2016, 09:03
Re: ApplyAnimation & PlayerPlaySound problems - by Nin9r - 02.06.2016, 09:48
Re: ApplyAnimation & PlayerPlaySound problems - by Dayrion - 02.06.2016, 10:23
Re: ApplyAnimation & PlayerPlaySound problems - by justjamie - 02.06.2016, 12:16
Re: ApplyAnimation & PlayerPlaySound problems - by Dayrion - 02.06.2016, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)