SA-MP Forums Archive
Animation help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Animation help (/showthread.php?tid=417884)



Animation help - lramos15 - 22.02.2013

I have a front fall command to get on the ground when cops tell you but it doesn't appear to other players please help
PHP код:
    CMD:frontfall(playeridparams[])
    {
     
ApplyAnimation(playerid"PED""KO_shot_front",4.1,0,1,1,1,1);
     return 
1;
     }
     
CMD:stopanim(playeridparams[])
    {
     
ClearAnimations(playerid);
     return 
1;
     } 



Re: Animation help - Scrillex - 22.02.2013

Try to use it multiple times.. That can be the answer Just need to do it multiple times I had the same things...


Re: Animation help - Scenario - 22.02.2013

Add this under OnPlayerSpawn:

pawn Код:
PreloadAnimLib(playerid,"BOMBER");
        PreloadAnimLib(playerid,"RAPPING");
        PreloadAnimLib(playerid,"SHOP");
        PreloadAnimLib(playerid,"BEACH");
        PreloadAnimLib(playerid,"SMOKING");
        PreloadAnimLib(playerid,"FOOD");
        PreloadAnimLib(playerid,"ON_LOOKERS");
        PreloadAnimLib(playerid,"DEALER");
        PreloadAnimLib(playerid,"CRACK");
        PreloadAnimLib(playerid,"CARRY");
        PreloadAnimLib(playerid,"COP_AMBIENT");
        PreloadAnimLib(playerid,"PARK");
        PreloadAnimLib(playerid,"INT_HOUSE");
        PreloadAnimLib(playerid,"FOOD" );
PreloadAnimLib(playerid,"PED" );
Add this function at the bottom of your script:

pawn Код:
stock PreloadAnimLib(playerid, animlib[])
   return ApplyAnimation(playerid,animlib,"NULL",0.0,0,0,0,0,0);



Re: Animation help - lramos15 - 22.02.2013

that doesnt work it wont let me run the server now


Re: Animation help - lramos15 - 22.02.2013

After some tweaking of the indentation I fixed the server


Re: Animation help - lramos15 - 22.02.2013

Stop anim doesnt work though.