Real weapon reload animation - 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: Real weapon reload animation (
/showthread.php?tid=620123)
Real weapon reload animation -
pedrotvr - 26.10.2016
I trying to make a new reload system (anti ammo hack), but i got some problems with animations...
Looking on this website i got reload animations but its not the real what i want
https://sampwiki.blast.hk/wiki/Animations
I need this reload weapon animations:
Код:
24 (eagle)
27 (spaz)
29 (mp5)
30 (ak)
31 (m4)
Anyone could help me please?
Re: Real weapon reload animation -
Kaliber - 26.10.2016
Its easier if you check OnPlayerWeapon shot & use GetPlayerAmmo
Re: Real weapon reload animation -
maikons - 26.10.2016
Quote:
Originally Posted by Kaliber
Its easier if you check OnPlayerWeapon shot & use GetPlayerAmmo 
|
He don't ask to help to make the script..
He just ask for animations...
About topic:
I search and don't find too...
Re: Real weapon reload animation -
pedrotvr - 29.10.2016
Using
Код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerAnimationIndex(playerid))
{
new animlib[32];
new animname[32];
new msg[128];
GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32);
format(msg, 128, "Running anim: %s %s", animlib, animname);
SendClientMessage(playerid, 0xFFFFFFFF, msg);
}
return 1;
}
I get the animations, but i have only one problem to fix:
I get the couched animation and wake up animation, but if player is couched when he reload he get up...
Why?
One example:
Код:
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DUCK) { ApplyAnimation (playerid , "PYTHON" , "python_crouchreload" , 4.0 , 0 , 0 , 0 , 0 , 500); }
else { ApplyAnimation (playerid , "PYTHON" , "python_reload" , 4.0 , 0 , 0 , 0 , 0 , 500); }
Re: Real weapon reload animation -
pedrotvr - 30.10.2016
Anyone know why it get up when use crouch animation?
Re: Real weapon reload animation -
pedrotvr - 01.11.2016
bump!