03.08.2013, 21:16
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 ) ; }