SA-MP Forums Archive
Reload Weaps - 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: Reload Weaps (/showthread.php?tid=651537)



Reload Weaps - BulletRaja - 22.03.2018

i want to know which animations are used for reload weapon


Re: Reload Weaps - Maxandmov - 22.03.2018

You might want to search in here: https://sampwiki.blast.hk/wiki/Animations
Or use this filterscript to find it yourself: https://sampforum.blast.hk/showthread.php?tid=587916


Re: Reload Weaps - BulletRaja - 22.03.2018

Quote:
Originally Posted by Maxandmov
Посмотреть сообщение
You might want to search in here: https://sampwiki.blast.hk/wiki/Animations
Or use this filterscript to find it yourself: https://sampforum.blast.hk/showthread.php?tid=587916
Thanks


Re: Reload Weaps - GRiMMREAPER - 22.03.2018

Depends on the weapon. This is a leftover from a script I was working on. The names are self explanatory:

Код:
python_reload 
python_crouchreload

--

# COLT45

colt45_crouchreload
colt45_reload

--

sawnoff_reload

--

# For the Silenced Pistol.

Silence_reload 
CrouchReload

--

# TEC9

TEC_crouchreload
TEC_reload

--

# UZI
UZI_crouchreload 
UZI_reload

--

# RIFLES

RIFLE_crouchload 
RIFLE_load 

--

# Untested
buddy_crouchreload
buddy_reload
If you want to see a specific animation, you don't need to load your server with another Filterscript (and as a plus, the one linked above is quite limited). Put this in your running gamemode and you should be fine. Fire weapons, reload them and you'll get the exact animation name you are looking for.

pawn Код:
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, "Current animation - Library: %s | Name: %s", animlib, animname);
        SendClientMessage(playerid, 0xFFFFFFFF, msg);
    }
    return 1;
}