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=466014)
Animation help -
Voxel - 25.09.2013
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!
Re: Animation help -
DanishHaq - 25.09.2013
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
.
Re: Animation help -
Voxel - 25.09.2013
sure thing man! i always have respect for people that take their time to help me!