Reload command
#6

ok this is my code


Код:
CMD:reload( playerid , params [ ] )
{



    if ( GetPlayerState ( playerid ) == 1 )
	{

        new Ammo = GetPlayerAmmo(playerid);
	
        if(GetPlayerWeapon(playerid) == 24)	ApplyAnimation ( playerid , "COLT45" , "colt45_reload" , 4.0 , 0 , 0 , 0 , 0 , 0 ) ;	      SetPlayerAmmo(playerid, 24, Ammo+20);
        if(GetPlayerWeapon(playerid) == 22)	ApplyAnimation ( playerid , "COLT45" , "colt45_reload" , 4.0 , 0 , 0 , 0 , 0 , 0 ) ;	      SetPlayerAmmo(playerid, 22, Ammo+20);
        if(GetPlayerWeapon(playerid) == 29)	ApplyAnimation ( playerid , "BUDDY" ,  "buddy_reload" , 4.0 , 0 , 0 , 0 , 0 , 0 ) ;	          SetPlayerAmmo(playerid, 29, Ammo+20);
        if(GetPlayerWeapon(playerid) == 30)	ApplyAnimation ( playerid , "BUDDY" ,  "buddy_reload" , 4.0 , 0 , 0 , 0 , 0 , 0 ) ;	          SetPlayerAmmo(playerid, 30, Ammo+20);
        if(GetPlayerWeapon(playerid) == 31)	ApplyAnimation ( playerid , "BUDDY" ,  "buddy_reload" , 4.0 , 0 , 0 , 0 , 0 , 0 ) ;	          SetPlayerAmmo(playerid, 31, Ammo+20);
        if(GetPlayerWeapon(playerid) == 25) ApplyAnimation ( playerid , "PYTHON" , "pythonreload" , 4.0 , 0 , 0 , 0 , 0 , 0 ) ;	          SetPlayerAmmo(playerid, 25, Ammo+20);
        if(GetPlayerWeapon(playerid) == 26) ApplyAnimation ( playerid , "COLT45" , "sawnoff_reload" , 4.0 , 0 , 0 , 0 , 0 , 0 ) ;	      SetPlayerAmmo(playerid, 26, Ammo+20);
        if(GetPlayerWeapon(playerid) == 27) ApplyAnimation ( playerid , "PYTHON" , "pythonreload" , 4.0 , 0 , 0 , 0 , 0 , 0 ) ;	          SetPlayerAmmo(playerid, 27, Ammo+20);
        if(GetPlayerWeapon(playerid) == 32) ApplyAnimation ( playerid , "UZI" ,    "UZI_reload" , 4.0 , 0 , 0 , 0 , 0 , 0 ) ;	          SetPlayerAmmo(playerid, 32, Ammo+20);
        if(GetPlayerWeapon(playerid) == 28) ApplyAnimation ( playerid , "UZI" ,    "UZI_reload" , 4.0 , 0 , 0 , 0 , 0 , 0 ) ;	          SetPlayerAmmo(playerid, 28, Ammo+20);
        if(GetPlayerWeapon(playerid) == 23) ApplyAnimation ( playerid , "SILENCED" ,"silence_reload" , 4.0 , 0 , 0 , 0 , 0 , 0 ) ;	      SetPlayerAmmo(playerid, 23, Ammo+20);

                          
	}
    return ( 1 ) ;
}
Reply


Messages In This Thread
Reload command - by Alexica721 - 03.08.2013, 12:42
Re: Reload command - by DetoNater - 03.08.2013, 12:50
Re: Reload command - by Alexica721 - 03.08.2013, 12:52
Re: Reload command - by Alexica721 - 03.08.2013, 19:05
Re: Reload command - by Chrisis - 03.08.2013, 19:39
Re: Reload command - by Alexica721 - 03.08.2013, 21:16
Re: Reload command - by Alexica721 - 04.08.2013, 09:27
Re: Reload command - by Sk1lleD - 04.08.2013, 10:26
Re: Reload command - by RajatPawar - 04.08.2013, 10:30

Forum Jump:


Users browsing this thread: 2 Guest(s)