Description: This plugin allows for unlimited pistol ammornrnrnCvars: dod_pistolammo (0|1) (Default is off 0)rnrnChangelog:rnv1.0 - CreatedrnrnToDo Nothing
Unlimited Pistol Ammo
by Hell Phoenix · 2006-07-10 · 29 replies · 20331 views · 522 downloads
From the first post
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_unlimited_pistolammo_241.sma | v1.0 | 3 KB | Download Compile | |
| 1.sma | v1.0 modified | 2 KB | Download Compile | |
| dod_pistolammo.sma | v1.0 modified | 2 KB | Download Compile |
The thread
All 30 posts from 13 people on Unlimited Pistol Ammo, kept as they were written.
Threads: 17
Joined: Jan 2005
Description: This plugin allows for unlimited pistol ammornrnrnCvars: dod_pistolammo (0|1) (Default is off 0)rnrnChangelog:rnv1.0 - CreatedrnrnToDo NothingThreads: 10
Joined: Apr 2005
Odd I compiled the sma to amxx. Added the amxx into the plugins folder and the sma in the scripting folder. Then added dod_unlimited_pistolammo.amxx to the plugins.ini folder and then restarted the server. All I get is "unknown unknown unknown dod_unlimited_p bad load" I also added the cvar dod_pistolammo 1. I was figuring it does with the compile or plugins.ini folder. Any suggestions?
Threads: 57
Joined: Oct 2005
What version of the compiler do you have? AmxModX was recently updated -- make sure you have the most recent compiler on your computer.
Threads: 17
Joined: Jan 2005
You have to use at least amxx 1.71 or above. What version are you using?
Threads: 10
Joined: Apr 2005
I just been using the one on www.amxmodx.org site... I just upload the sma and compile. http://www.amxmodx.org/webcompiler.cgi
Threads: 17
Joined: Jan 2005
No...what version of amxx do you have running on your server? It has to be at least 1.71.
Threads: 10
Joined: Apr 2005
Doh! LOL! I am currently running amxmodx v1.60, metamod v1.18 ... hmm odd bec we usually have the most updated vers of amxmodx but I guess that is the problem....tho I have alot of plugins already but that would make sense bec chicken, unlimmited pisol ammo, and nadesforall are getting bad loads. Hmmm I guess I need to upgrade to 1.75 seing Im outdated ...crazy I feel like a noob LOL! I swear you guys should be given a dod medal.nnn__________nSee ya on the battlefield!!!nKeeping the community alive!!!n63.215.74.212:27015 $ad|+:*:+|Avalanche|+:*:+ {FuNpLuGiNs+32 $lots MaYhAm}
Threads: 17
Joined: Jan 2005
Version 1.71 introduced a way to make plugins faster, and most of the coders updated their plugins to take advantage of that. All those plugins should work once you get it updated =D
Threads: 10
Joined: Apr 2005
You bring a tear to my eye .... THANKYOU!rnrn__________rnSee ya on the battlefield!!!rnKeeping the community alive!!!rn63.215.74.212:27015 $ad|+:*:+|Avalanche|+:*:+ {FuNpLuGiNs+32 $lots MaYhAm}
Threads: 10
Joined: Apr 2005
All updated and worked. Thanks!
Threads: 4
Joined: Jul 2006
Well I installed checked the plugins list and its running.rnrnOnly one problem I go into my console and try to turn it on it wont work any suggestions?rnrnThx for any and all help.
Threads: 17
Joined: Jan 2005
What version of amxx are you using?
Threads: 0
Joined: Jul 2006
hey, i was wondering if one of you guys could, post a amxx file type for this mod, for some reason i cant compile plugins. its pissing me off. thanks, id very much appreceate it. dont mind my spelling..
Threads: 103
Joined: May 2005
hey, i was wondering if one of you guys could, post a amxx file type for this mod, for some reason i cant compile plugins. its pissing me off. thanks, id very much appreceate it. dont mind my spelling..nntry the online compiler?nnhttps://www.dodplugins.net/compiler/
Threads: 0
Joined: Jul 2006
well, so far the file is compiled, but i cant seem to get my ftp open now. funny how things work. thanks though, this helps alot. peace.
Threads: 2
Joined: Jun 2007
thank you, works great on our linux server amxx 1.76d
Threads: 6
Joined: Aug 2005
This plugin is very nice but im getting a runtime error in my logs.rnrnrn
rnL 01/06/2008 - 01:04:15: Start of error session.rnL 01/06/2008 - 01:04:15: Info (map "dod_dust") (logfile "error_010608.log")rnL 01/06/2008 - 01:04:15: [DODX] Invalid player 5rnL 01/06/2008 - 01:04:15: [AMXX] Displaying debug trace (plugin "dod_unlimited_pistolammo.amxx")rnL 01/06/2008 - 01:04:15: [AMXX] Run time error 10: native error (native "get_user_team")rnL 01/06/2008 - 01:04:15: [AMXX] [0] dod_unlimited_pistolammo.sma::give_pammo (line 78)rnrnrnAnd here is what's at that line.rnrnrn}rnpublic give_pammo(id){rnif(get_user_team(id) == AXIS){rndod_set_user_ammo(id,DODW_LUGER,999)rnreturn PLUGIN_HANDLEDrn}rnThreads: 103
Joined: May 2005
that error isnt a big deal and hell phoenix could easily fix it by just adding a is_user_connected checknnbut anyway since no one can say when or if that will happen.. you can try this code here which is slightly modifed (added the connected check as well as simplified some other stuff)nn
#include <amxmodx>n#include <dodfun>n#include <dodx>nn#define PLUGIN "DoD Unlimited Pistol Ammo"n#define VERSION "1.0 modified"n#define AUTHOR "AMXX DoD Community"nnnew pistolammonnpublic plugin_init()n{n register_plugin(PLUGIN, VERSION, AUTHOR)n n pistolammo = register_cvar("dod_pistolammo","0")n n register_event("ResetHUD","give_ammo","be")n}nnpublic give_ammo(id)n{n if(get_pcvar_num(pistolammo))n set_task(0.1,"give_pammo",id)n}nnpublic give_pammo(id)n{n if(is_user_connected(id))n { n new team = get_user_team(id)n n if(team == AXIS)n dod_set_user_ammo(id,DODW_LUGER,999)n else if(team == ALLIES)n {n if(dod_get_map_info(MI_ALLIES_TEAM) == 1)n dod_set_user_ammo(id,DODW_WEBLEY,999)n elsen dod_set_user_ammo(id,DODW_COLT,999)n }n }n}Threads: 6
Joined: Aug 2005
that error isnt a big deal and hell phoenix could easily fix it by just adding a is_user_connected checkrnrnbut anyway since no one can say when or if that will happen.. you can try this code here which is slightly modifed (added the connected check as well as simplified some other stuff)rnrnrnrnrnAwesome dude you rock, as usual. will test it out right now.#include <amxmodx>rn#include <dodfun>rn#include <dodx>rnrn#define PLUGIN "DoD Unlimited Pistol Ammo"rn#define VERSION "1.0 modified"rn#define AUTHOR "AMXX DoD Community"rnrnnew pistolammornrnpublic plugin_init()rn{rn register_plugin(PLUGIN, VERSION, AUTHOR)rn rn pistolammo = register_cvar("dod_pistolammo","0")rn rn register_event("ResetHUD","give_ammo","be")rn}rnrnpublic give_ammo(id)rn{rn if(get_pcvar_num(pistolammo))rn set_task(0.1,"give_pammo",id)rn}rnrnpublic give_pammo(id)rn{rn if(is_user_connected(id))rn { rn new team = get_user_team(id)rn rn if(team == AXIS)rn dod_set_user_ammo(id,DODW_LUGER,999)rn else if(team == ALLIES)rn {rn if(dod_get_map_info(MI_ALLIES_TEAM) == 1)rn dod_set_user_ammo(id,DODW_WEBLEY,999)rn elsern dod_set_user_ammo(id,DODW_COLT,999)rn }rn }rn}
Threads: 6
Joined: Aug 2005
Ok i been busy doing other things but just got a chance to test that code update out Diamond and im still getting that error. rnrn
rn02/02/2008 - 15:18:23: [AMXX] Displaying debug trace (plugin "dod_unlimited_pistolammo.amxx")rnL 02/02/2008 - 15:18:23: [AMXX] Run time error 10: native error (native "get_user_team")rnL 02/02/2008 - 15:18:23: [AMXX] [0] dod_unlimited_pistolammo.sma::give_pammo (line 78)rnLrnThreads: 0
Joined: Feb 2008
I had this working at one time then all of a sudden the thing locked it self so I can't start or stop it?rnany sugestions?
Threads: 59
Joined: Jan 2007
Take the plugin off, redownload the plugin, make sure it's compiled for your amxmodx version and place it back on...My only suggestion
Threads: 59
Joined: Jan 2007
Did this solve your problems though?
Threads: 0
Joined: Feb 2008
yes it did thanks again
Threads: 0
Joined: Dec 2008
okay im pretty new to a lot of this but i have the unlimited pistol ammo working and it says its running... but does not show that it works and when i type dod_pistolammo it doesnt show that its on...rnany help?
Threads: 23
Joined: Aug 2007
did you add the cvar to your amxx.cfg file? rnrndod_pistolammo 1rnrnAlso as previously stated you must have amx v1.71 or newer.
Threads: 0
Joined: Dec 2008
thanx i did not have the cvar in there
Threads: 59
Joined: Jan 2007
So I re-enabled the plugin and still getting the issue D-O tried to resolve in an earlier post.rnrnIm still getting the errors posted before. Anyone know how to fix this. I know it's not a bad error as also posted before but I rather have no errors at all.
Threads: 75
Joined: Nov 2007
i would try with Ham_Item_Deploy :rnrn
/**rn * Description: Deploys the entity (usually a weapon).rn * Forward params: function(this);rn * Return type: Integer (boolean).rn * Execute params: ExecuteHam(Ham_Item_Deploy, this);rn */rn Ham_Item_Deploy,

