PDA

View Full Version : Giveammo plugin?


{SR} *Raggy*
10-31-2006, 03:04 PM
Does anyone know of a plugin that u say /giveammo and it gives you the ammo? I seen it before but I can't remember where or when

caveman
10-31-2006, 05:03 PM
there is a plugin for unlimited pistol ammo, i have that one but not the one for /giveammo

{SR} *Raggy*
10-31-2006, 06:16 PM
Yeah I found that plugin but this plugin would cover for a few of my plugins now if I can find it. I'll keep searching but thanks for your help

{SR} *Raggy*
11-03-2006, 11:58 AM
Has anyone heard of this plugin?

{SR} *Raggy*
11-10-2006, 07:18 PM
So anyone got any idea what I'm on about?

Smiffy
11-10-2006, 08:15 PM
this should be in request plugins?

Uldschool
12-18-2006, 10:57 PM
I'd like to get my hands on this too. It used to be available here by Firestorm.

http://72.14.203.104/search?q=cache:lzSzZs6vHdcJ:www.dodplugins.net/viewforum.php%3Ff%3D16%26sid%3D315624d01ab6909faad f493dcc1bea4d+Firestorm+ammogiver&hl=en&gl=us&ct=clnk&cd=1

Zor
12-19-2006, 02:12 PM
Make sure that the following cvar is turned on by putting it in you amxx.cfg

dod_ammogiver 1

Cheers!

PS I will post this one up under firestorms name.

Cheers!

Uldschool
12-19-2006, 03:20 PM
It was already like that in the amxx.cfg file. Here's what I did and maybe someone can tell me where I went wrong.

We have had the ammogiver plugin on our server for almost a year and no problems at all. Then yesterday I opened dod_ammogiver.sma and changed the following code

FROM
public plugin_init() {
register_plugin("DoD AmmoGiver","0.8beta","AMXX DoD Team")
register_cvar("dod_ammogiver","0")
set_cvar_num("dod_ammogiver",0)
register_cvar("ammogiver_shells","15")
register_cvar("ammogiver_grenades","5")
register_cvar("ammogiver_bullets","500")
register_cvar("ammogiver_maxrefills","1")
register_concmd("amx_ammogiver","set_ammogiver",ADMIN_BAN,"<enable/disable DoD AmmoGiver>")
register_clcmd("say /giveammo","gimme_ammo",-1)
register_clcmd("say giveammo","gimme_ammo",-1)
register_event("ResetHUD","reset_ammocount","be")

TO
public plugin_init() {
register_plugin("DoD AmmoGiver","0.8beta","AMXX DoD Team")
register_cvar("dod_ammogiver","0")
set_cvar_num("dod_ammogiver",0)
register_cvar("ammogiver_shells","15")
register_cvar("ammogiver_grenades","5")
register_cvar("ammogiver_bullets","500")
register_cvar("ammogiver_maxrefills","1")
register_concmd("amx_ammogiver","set_ammogiver",ADMIN_BAN,"<enable/disable DoD AmmoGiver>")
register_clcmd("say /giveammo","gimme_ammo",-1)
register_clcmd("say giveammo","gimme_ammo",-1)
register_clcmd("say_team /giveammo","gimme_ammo",-1)
register_clcmd("say_team giveammo","gimme_ammo",-1)
register_event("ResetHUD","reset_ammocount","be")

Then I recompiled it and took the dod_ammogiver.amxx file and put it in the plugins folder. I didn't need to do anything in the plugin.ini file bacause it was already in there and amx_ammogiver is set to "1" in the amxx.cfg file.

The only thing we can think of is that the recopiled sma/amxx file isn't compatible since we updated the server to AMX MODX v1.76 (don't remember the previous version, 1.6 I think) a while back. We originally downloaded compiled and loaded most of our configs when we where on the previous version of AMX MODX.

So now when I restart a map It says that the dod_ammogiver plugin failed to load.

Uldschool
12-19-2006, 03:46 PM
This is what shows when I type in amx_plugins:


DoD TeamManager 0.95bet AMXX DoD Team dod_teammanager running
unknown unknown unknown dod_ammogiver.a bad load
unknown unknown unknown dod_giveammo.am bad load
Swear Filter 1.0a SuicideDog swear_filter.am running

{SR} *Raggy*
12-19-2006, 04:09 PM
Did you also make a bit of code for those 2
register_clcmd("say_team /giveammo","gimme_ammo",-1)
register_clcmd("say_team giveammo","gimme_ammo",-1)

Uldschool
12-19-2006, 05:01 PM
Shouldn't need to, all I was doing was registering the commands. Even if I revert back to the original code with no changes and try to compile and load it still does the same thing.

{SR} *Raggy*
12-19-2006, 09:19 PM
It all works for me perfect now....I just have to get the commands for the amxx.cfg :P