Author Topic: Animations to weapons  (Read 1672 times)

[RU]Kewun

  • Full Member
  • ***
  • Posts: 126
  • Karma: +11/-21
  • C.R.C Marshal
    • View Profile
Animations to weapons
« 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;
}
Fear the wrath of god!


WheatleyGAMING

  • Newbie
  • *
  • Posts: 21
  • Karma: +3/-3
    • View Profile
Re: Animations to weapons
« Reply #1 on: January 10, 2016, 01:40:58 am »
Awesome  :D

 

© Liberty Unleashed Team.