mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Updated to remove unnessasary stocks
This commit is contained in:
parent
60586fdda4
commit
fb0febb50e
@ -30,24 +30,4 @@ native sc_get_weapon_ammo(id, type)
|
|||||||
|
|
||||||
// Sets the amount of ammo an ent has.
|
// Sets the amount of ammo an ent has.
|
||||||
// Use the SVEN_WEP_* defines for type
|
// Use the SVEN_WEP_* defines for type
|
||||||
native sc_set_weapon_ammo(id, amount, type)
|
native sc_set_weapon_ammo(id, amount, type)
|
||||||
|
|
||||||
//Stocks for 9mm ammo (mp5, uzi(akimbo))
|
|
||||||
stock sc_get_bpammo_9mm(id) { return sc_get_weapon_ammo(id,SVEN_WEP_9MM; }
|
|
||||||
stock sc_set_bpammo_9mm(id, amount) { return sc_set_weapon_ammo(id, amount, SVEN_WEP_9MM; }
|
|
||||||
|
|
||||||
//Stocks for RPG ammo (RPG launcher)
|
|
||||||
stock sc_get_bpammo_rpg(id) { return sc_get_weapon_ammo(id,SVEN_WEP_RPG; }
|
|
||||||
stock sc_set_bpammo_rpg(id, amount) { return sc_set_weapon_ammo(id, amount, SVEN_WEP_RPG; }
|
|
||||||
|
|
||||||
//Stocks for radioactive ammo (gauss, egon)
|
|
||||||
stock sc_get_bpammo_radio(id) { return sc_get_weapon_ammo(id,SVEN_WEP_RADIO; }
|
|
||||||
stock sc_set_bpammo_radio(id, amount) { return sc_set_weapon_ammo(id, amount, SVEN_WEP_RADIO; }
|
|
||||||
|
|
||||||
//Stocks for snark ammo
|
|
||||||
stock sc_get_bpammo_snark(id) { return sc_get_weapon_ammo(id,SVEN_WEP_SNARK; }
|
|
||||||
stock sc_set_bpammo_snark(id, amount) { return sc_set_weapon_ammo(id, amount, SVEN_WEP_SNARK; }
|
|
||||||
|
|
||||||
//Stocks for shotgun ammo
|
|
||||||
stock sc_get_bpammo_shot(id) { return sc_get_weapon_ammo(id,SVEN_WEP_SHOTGUN; }
|
|
||||||
stock sc_set_bpammo_shot(id, amount) { return sc_set_weapon_ammo(id, amount, SVEN_WEP_SHOTGUN; }
|
|
Loading…
Reference in New Issue
Block a user