DoD AmmoGiver ( v1.0 )
by Firestorm · 2006-12-19 · 14 replies · 8978 views · 151 downloads
From the first post
n// ========
n//
n// amx_ammogiver <1/0> = enable/disable DoD AmmoGiver
n// (admin command)
n//
n// say /giveammo = get specified amount of ammo
n// for weapon in hand
n//
n// say giveammo = get specified amount of ammo
n// for weapon in hand
n//
n//
n// CVARs (for amxx.cfg):
n// =====================
n//
n// dod_ammogiver 1 = enable DoD AmmoGiver
n// by default
n//
n// dod_ammogiver_maxrefills //set how many times ammo can be
n// -refilled between respawns
n// dod_ammogiver_bullets //set how many bullets to give
n// -(pistols/rifles/smgs/mgs)
n// dod_ammogiver_grenades //set how many grenades to give
n// -(no need to explain)
n// dod_ammogiver_shells //set how many shells to give
n// -(bazooka/panzerschreck/piat)
n//
n//
n// This plugin allows players to refill the ammo of the weapon/grenade
n// currently in their hand by saying "/giveammo".
n// You can set how often they can refill their ammo between respawns,
n// as well as the amount of bullets, shells and grenades to give.
n//
n// To do:
n//
n// - nothing so far :P
n//
n//
n// Changelog:
n//
n// - 25.10.2004 Version 0.8beta
n// Initial Beta
n//
n// - 19.12.2006 Version 1.0
n// No need to be a beta anymore!
n// Added public cvar for tracking
n// Used dod_client_spawn instead of ResetHud
n// Changed client_authorized to client_putinserver
n// Replaced some IF statements with switches
n// Added PCVARS
n// Added some 'connected' & 'alive' checks
n// Got rid of unneccesary code
n// Put 'dod' prefix on cvars (didnt change console command)
n// Made code more 'readable'
n//
n
nDOWNLOAD MIRROR: http://mods.teamcdrive.com/download.php?view.104
Archived builds from the server loose
These compiled builds sat loose in the server's script folder rather than attached to a post. They are matched to this release by comparing their decompiled Pawn against the source published above, so treat the attribution as strong but not certain. Versions come from the register_plugin() call recovered from the bytecode.
| dod_ammogiver.amxx | Compiled Plugin | 6 KB | Download | |
| dod_ammogiver_136.sma | v0.8beta | 7 KB | Download Compile | |
| dod_ammogiver_se.sma | v0.8beta | 9 KB | Download Compile | |
| dod_ammogiver_se_151.sma | v0.8beta | 9 KB | Download Compile |
The thread
All 15 posts from 6 people on DoD AmmoGiver ( v1.0 ), kept as they were written.
Threads: 30
Joined: Jul 2006
// In-Game: n// ======== n// n// amx_ammogiver <1/0> = enable/disable DoD AmmoGiver n// (admin command) n// n// say /giveammo = get specified amount of ammo n// for weapon in handn// n// say giveammo = get specified amount of ammo n// for weapon in hand n//n//n// CVARs (for amxx.cfg):n// =====================n//n// dod_ammogiver 1 = enable DoD AmmoGivern// by defaultn//n// dod_ammogiver_maxrefills //set how many times ammo can ben// -refilled between respawnsn// dod_ammogiver_bullets //set how many bullets to given// -(pistols/rifles/smgs/mgs)n// dod_ammogiver_grenades //set how many grenades to given// -(no need to explain)n// dod_ammogiver_shells //set how many shells to given// -(bazooka/panzerschreck/piat)n//n//n// This plugin allows players to refill the ammo of the weapon/grenaden// currently in their hand by saying "/giveammo".n// You can set how often they can refill their ammo between respawns,n// as well as the amount of bullets, shells and grenades to give.n//n// To do:n//n// - nothing so far :Pn//n//n// Changelog:n//n// - 25.10.2004 Version 0.8betan// Initial Betan//n// - 19.12.2006 Version 1.0n// No need to be a beta anymore!n// Added public cvar for trackingn// Used dod_client_spawn instead of ResetHudn// Changed client_authorized to client_putinservern// Replaced some IF statements with switchesn// Added PCVARSn// Added some 'connected' & 'alive' checksn// Got rid of unneccesary coden// Put 'dod' prefix on cvars (didnt change console command)n// Made code more 'readable'n//nnDOWNLOAD MIRROR: http://mods.teamcdrive.com/download.php?view.104
Threads: 27
Joined: Apr 2006
Uldschool was saying that this has been coming up with bad load on the newest amxx. Maybe it has to be updated a tiny bit from all the changes on amxx? I'll try it now and let ye know what is wrong
Threads: 103
Joined: May 2005
im looking at it right now... and just glancing over it ive noticed several things that can be cleaned up... just give me a bit to actually look at it in detail :Pnnn*edit*n- just tried it on my server.. it loads and works just fine for me.. but obviously firestorm wont be updating it lol.. i'll go ahead and just clean it up a bit and bring it up to date (such as pcvars)
Threads: 103
Joined: May 2005
UPDATED TO VERSION 1.0nn
- 19.12.2006 Version 1.0n No need to be a beta anymore!n Added public cvar for trackingn Used dod_client_spawn instead of ResetHudn Changed client_authorized to client_putinservern Replaced some IF statements with switchesn Added PCVARSn Added some 'connected' & 'alive' checksn Got rid of unneccesary coden Put 'dod' prefix on cvars (didnt change console command)n Made code more 'readable'nn*** TAKE NOTICE ***nni added 'dod_' prefix to the front of the cvars (so they go together better now instead of just one cvar having the prefix) so you WILL need to update your configs for this!!!nndod_ammogiverndod_ammogiver_maxrefillsndod_ammogiver_bulletsndod_ammogiver_grenadesndod_ammogiver_shellsnn.. I also left the console command as is, so it is still 'amx_ammogiver'nnAND!nni feel theres no need to call this a 'beta' anymore so i jumped from 0.8beta right to version 1.0 :-)nnenjoy!Threads: 27
Joined: Apr 2006
Thanks Diamond I'll have to update it now :P
Threads: 7
Joined: Jun 2006
Probably a silly question but for the dod_ammogiver_bullets CVAR is the value I am setting for the actual amount of bullets or the amount of clips?
Threads: 27
Joined: Apr 2006
It's bullets. I'm pretty sure it's bullets anyways :P I kinda remember the plugin from a server I used to love going on too but sadly I cannot find that server anymore :(
Threads: 1
Joined: Dec 2006
If I can get this to work. nI will marry you...
Threads: 27
Joined: Apr 2006
Hmmmmm.......
Threads: 103
Joined: May 2005
Probably a silly question but for the dod_ammogiver_bullets CVAR is the value I am setting for the actual amount of bullets or the amount of clips?nnits the number of bullets
Threads: 0
Joined: Dec 2005
So if I take the above sma and use the sites compiler (selecting 1.76) and take the amxx file and put it in the plugins folder. Then add dod_giveammo to the plugins.ini file and update the amxx.fg file I should have it working?
Threads: 7
Joined: Jun 2006
So if I take the above sma and use the sites compiler (selecting 1.76) and take the amxx file and put it in the plugins folder. Then add dod_giveammo to the plugins.ini file and update the amxx.fg file I should have it working?rnrnreboot, and thats a wrap!
Threads: 27
Joined: Apr 2006
// CVARs (for amxx.cfg):rn// =====================rn//rn// dod_ammogiver 1 = enable DoD AmmoGiverrn// by defaultrn//rn// dod_ammogiver_maxrefills //set how many times ammo can bern// -refilled between respawnsrn// dod_ammogiver_bullets //set how many bullets to givern// -(pistols/rifles/smgs/mgs)rn// ammogiver_grenades //set how many grenades to givern// -(no need to explain)rn// ammogiver_shells //set how many shells to givern// -(bazooka/panzerschreck/piat)rnrnMake sure you add that to the amxx.cfg before you change map
Threads: 103
Joined: May 2005
add dod_giveammo to the plugins.ininnmake sure you put the .amxx extension on the plugin name too..
Threads: 0
Joined: Dec 2005
I've done the above and I'm still getting a "bad load" on dod_giveammo when I check using amx_plugins command.nn**EDIT**nI have it working now, thanks guys!

