Liberty Unleashed

Scripting => Script Releases => Topic started by: [RU]Kewun on August 25, 2015, 10:38:21 am

Title: Animations to weapons
Post by: [RU]Kewun on August 25, 2015, 10:38:21 am
Want to get a animation when changing weapon like gta 4? install this scripto!

function onPlayerWeaponChange( player, oldwep, newwep, ammo )
{
     if ( newwep == WEP_FIST )
     {
     player.SetAnim (57); 
     }
     if ( newwep == WEP_BAT )
     {
     player.SetAnim (58); 
     }
     if ( newwep == WEP_COLT45 )
     {
     player.SetAnim (57); 
     }
     if ( newwep == WEP_UZI )
     {
     player.SetAnim (57); 
     }
     if ( newwep == WEP_SHOTGUN )
     {
     player.SetAnim (58); 
     }
     if ( newwep == WEP_AK47 )
     {
     player.SetAnim (58); 
     }
     if ( newwep == WEP_M16 )
     {
     player.SetAnim (58); 
     }
     if ( newwep == WEP_SNIPER )
     {
     player.SetAnim (58); 
     }
     if ( newwep == WEP_ROCKETLAUNCHER )
     {
     player.SetAnim (58); 
     }
     if ( newwep == WEP_FLAMETHROWER )
     {
     player.SetAnim (58); 
     }
     if ( newwep == WEP_MOLOTOV )
     {
     player.SetAnim (57); 
     }
     if ( newwep == WEP_GRENADE )
     {
     player.SetAnim (57); 
     }
     
     return 1;
}
Title: Re: Animations to weapons
Post by: WheatleyGAMING on January 10, 2016, 01:40:58 am
Awesome  :D