Animation help
#1

Hello everyone,

Im trying to make it so when you take out your weapon out if your inventory it does a reload animation but i cant figur out a way to make it work. if you guys could tell me how to do this that would be great !

pawn Код:
if(IsValidObject(LootObjects[8]) && IsPlayerInRangeOfPoint(playerid,10.0,2384.59448,-1674.36279,13.74557))
        {
            AddItem(playerid,"Desert Eagle",1);
                //animation code here?
            SendClientMessage(playerid, COLOR_GREEN, "* 1 Desert Eagle has been added to your inventory");
            DestroyObject(LootObjects[8]);
        }
thanks for your time!
Reply
#2

Use ApplyAnimation to the player, here are a list of all the available animations: https://sampwiki.blast.hk/wiki/Animations.

Edit: I saw you rep'd me for "Thanks!", no problem .
Reply
#3

sure thing man! i always have respect for people that take their time to help me!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)