Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

DoD AmmoGiver ( v1.0 )

by Firestorm · 2006-12-19 · 14 replies · 8978 views · 151 downloads

Read the thread (15 posts)

From the first post

// 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 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

Files

dod_giveammo.sma Plugin Source 7 KB 151 dl Download Compile

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.

F Firestorm
started this thread
Posts: 31
Threads: 30
Joined: Jul 2006
12-19-2006, 02:37 PM #1

// 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

{SR} *Raggy*
posted here
Posts: 370
Threads: 27
Joined: Apr 2006
12-19-2006, 06:04 PM #2

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

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
12-19-2006, 11:44 PM #3

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)

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
12-20-2006, 12:41 AM #4

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!!!nn
dod_ammogiverndod_ammogiver_maxrefillsndod_ammogiver_bulletsndod_ammogiver_grenadesndod_ammogiver_shells
nn.. 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!

{SR} *Raggy*
posted here
Posts: 370
Threads: 27
Joined: Apr 2006
12-20-2006, 08:40 AM #5

Thanks Diamond I'll have to update it now :P

Box Cutter
posted here
Posts: 155
Threads: 7
Joined: Jun 2006
12-20-2006, 09:07 AM #6

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?

{SR} *Raggy*
posted here
Posts: 370
Threads: 27
Joined: Apr 2006
12-20-2006, 11:46 AM #7

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 :(

S Sebhael
posted here
Posts: 3
Threads: 1
Joined: Dec 2006
12-20-2006, 04:01 PM #8

If I can get this to work. nI will marry you...

{SR} *Raggy*
posted here
Posts: 370
Threads: 27
Joined: Apr 2006
12-20-2006, 07:22 PM #9

Hmmmmm.......

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
12-20-2006, 09:05 PM #10
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

U Uldschool
posted here
Posts: 6
Threads: 0
Joined: Dec 2005
12-23-2006, 12:53 AM #11

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?

Box Cutter
posted here
Posts: 155
Threads: 7
Joined: Jun 2006
12-23-2006, 01:02 AM #12
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!

{SR} *Raggy*
posted here
Posts: 370
Threads: 27
Joined: Apr 2006
12-23-2006, 08:30 AM #13
// 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

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
12-24-2006, 12:59 AM #14
add dod_giveammo to the plugins.ini
nnmake sure you put the .amxx extension on the plugin name too..

U Uldschool
posted here
Posts: 6
Threads: 0
Joined: Dec 2005
12-29-2006, 01:49 AM #15

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!

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC