Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › General › Requests for DoD Plugins › unlimited bazooka/pschrek ammo
3 posts, 2 people · 4,247 views Thread Rating: ★★★★★
closedunlimited bazooka/pschrek ammo
Started by [SOL] Psycho on 05-04-2008, 11:38 AM
[ [SOL] Psycho
started this thread
Posts: 60
Threads: 5
Joined: Dec 2007
05-04-2008, 11:38 AM #1

Does anyone have a simple plugin for unlimited ammo for zook classes? I am try running some of my maps zook/pschrek only but run out of ammo untill you die.rnrnI found thishttps://www.dodplugins.net/forums/showthread.php?t=1044&highlight=unlinited+ammornBut cant get Wilson's script to compile, I tried as he suggested with the includes. Also found some other suggestions but they seem to complicated for what I am trying to accomplish.rnThanks in advance

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
05-04-2008, 07:50 PM #2

try thisnn

#include <amxmodx>n#include <dodx>n#include <dodfun>nn#define VERSION "1.0"n#define SVERSION "v1.0 - by diamond-optic (www.AvaMods.com)"nnnew p_pluginnnpublic plugin_init()n{n    register_plugin("DoD Rocket Ammo",VERSION,"AMXX DoD Team")n    register_cvar("dod_rocketammo_stats",SVERSION,FCVAR_SERVER|FCVAR_SPONLY)n    n    p_plugin = register_cvar("dod_rocketammo","1")n    n    //Temp fix for spawningn    register_message(get_user_msgid("PStatus"),"msg_PStatus")n}nnpublic msg_PStatus(msgid,msgdest,id)n{n    new player = get_msg_arg_int(1)n    new status = get_msg_arg_int(2)n    n    if(is_user_connected(player) && status == 0)n        set_task(Float:0.5,"spawn_forward",player)n}nnpublic spawn_forward(id)n{n    if(get_pcvar_num(p_plugin) && is_user_connected(id) && is_user_alive(id))n        {n        new class = dod_get_user_class(id)n    n        if(class == DODC_PIAT || class == DODC_BAZOOKA || class == DODC_PANZERJAGER)n            {n            new zGun = dod_get_user_weapon(id)n        n            dod_set_user_ammo(id,zGun,999)n            }n        }n}
nncvar dod_rocketammo enables/disables the plugin

[ [SOL] Psycho
started this thread
Posts: 60
Threads: 5
Joined: Dec 2007
05-04-2008, 08:10 PM #3

Thank you d-o, Compiled and installed. Exactly what I was looking for.

Archive › Old Forum Threads › General › Requests for DoD Plugins › unlimited bazooka/pschrek ammo
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC