[CS:GO] - ⋯ Ammo management | Set correctly the ammo amout for each weapons
I - Description
Everytime I had a Valve update "items_game.txt" was reset. So I did this plugin for my community Zombie4ever.eu and Zombie Escape/Riot servers. Allow you to manage weapon ammo instead of using "items_game.txt" II - Cvars drapi_ammo_338mag_max "30" - AWP drapi_ammo_357sig_max "52" - HPK2000 drapi_ammo_357sig_min_max "12" - CZ75 drapi_ammo_357sig_p250_max "26" - P250 drapi_ammo_357sig_small_max "24" - USP-S drapi_ammo_45acp_max "100" - FIVESEVEN drapi_ammo_50AE_max "35" - DEAGLE drapi_ammo_556mm_box_max "200" - M249, NEGEV drapi_ammo_556mm_max "90" - M4A1, AK47, FAMAS, GALILAR drapi_ammo_556mm_small_max "40" - M4A1-S drapi_ammo_57mm_max "100" - P90, UMP45, MAC10 drapi_ammo_762mm_max "90" - SSG08, AUG, SG556, G3SG1, SCAR20 drapi_ammo_9mm_max "120" - ELITE, TEC9, MP7, MP9, GLOCK, BIZON drapi_ammo_buckshot_max "32" - MAG7, NOVA, SAWEDOFF, XM1014 This are default ammo. Don't put less than this values in your config "/csgo/cfg/sourcemod/drapi/drapi_ammo.cfg". III - Bugs FIXED - For no reason, if you reach 0 ammo you will get in plus default ammo of weapon. So what I did for example, AK47 Weapon ammo = drapi_ammo_556mm_max - default ammo. VI - Credits SMLIB for some useful functions VII - Changelogs Quote:
Anjin to check and tell me the correct cvars. IX - Donate If you like my work. https://www.paypalobjects.com/en_US/...onateCC_LG.gif X - Download GIT |
Re: [CSGO] - Ammo management | Zombie Escape / Riot
V1.1.0 Tried on differents SM version works.
|
Re: [CSGO] - Ammo management | Zombie Escape / Riot
Nice plugin!
Code:
#include <autoexec> |
Re: [CSGO] - Ammo management | Zombie Escape / Riot
Quote:
|
Re: [CSGO] - Ammo management | Zombie Escape / Riot
ok, thx.
Another question: why, in the plugin installed and configured, the game displays the same number of ammo? example: in game M4A1-S - 20/40 in drapi_ammo.cfg: M4A1-S - 80 |
Re: [CSGO] - Ammo management | Zombie Escape / Riot
Quote:
M4A1-S should put more than 80 cause at base you have 80 ammo on the M4A1-S. |
Re: [CSGO] - Ammo management | Zombie Escape / Riot
could you add execution on player spawn to your script??
|
Re: [CSGO] - Ammo management | Zombie Escape / Riot
Quote:
|
Re: [CSGO] - Ammo management | Zombie Escape / Riot
ok. works but not instantly in buyzone. when i bought p250 (changed to 52 ammo) i still saw 26 ammo in reserve. when i switched weapons and went back to secondary it showed 52 bullets. fired 3 rounds, reloaded, 49 bullets in reserve. works like a charm. maybe a little delay (timer 0.2) after purchasing?
[edit] my bad. timer works. cheers mate |
Re: [CSGO] - Ammo management | Zombie Escape / Riot
Quote:
|
All times are GMT -4. The time now is 08:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.