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 › Allies will not recognize Axis
1 post · 4,145 views Thread Rating: ★★★★★
closedAllies will not recognize Axis
Started by thomaskirk on 02-07-2015, 02:54 PM
T thomaskirk
started this thread
Posts: 15
Threads: 4
Joined: Jan 2008
02-07-2015, 02:54 PM #1

I need help with this plugin, the allied sturmbots will not shoot atrnthe axis sturmbots when I change thier models.rnrn#include <amxmodx>rn#include <dodx>rn#include <fakemeta> rn#include <hamsandwich> rn#include <fun>rn#include <dodfun>rnrnrn#define PLUGIN "DOD Zombies "rn#define VERSION "2.0"rn#define AUTHOR "Beek"rn#define AXIS 2rn#define ATEAM 1rn#define zombie_health 150rnrnnew zombiernrnrnpublic plugin_init() { rn register_plugin(PLUGIN, VERSION, AUTHOR) rn RegisterHam(Ham_Spawn, "player", "hamSpawn", 1) rn register_forward(FM_Touch,"fw_Touch")rn zombie = register_cvar("dod_zombie", "1") rn} rnrnpublic plugin_precache() { rn precache_model("models/player/axis_westwood/axis_westwood.mdl")rn precache_model("models/player/axis_westwood/axis_westwoodT.mdl")rn} rnrnpublic fw_Touch(touched_ent, toucher_ent) {rn if (get_pcvar_num(zombie)==1){ rn new classname[32] rn pev(touched_ent, pev_classname, classname, sizeof classname - 1) rn {rn if (!is_user_alive(toucher_ent) || get_user_team(toucher_ent) != ATEAM)rn return FMRES_SUPERCEDErn }rn return FMRES_IGNOREDrn }rn rn}rnrn public hamSpawn(id)rn { rn if (get_pcvar_num(zombie)==1 && is_user_connected(id))rn { rn if (get_user_team(id) == AXIS)rn {rn dod_set_model(id, "axis_westwood")rn set_user_health(id,zombie_health)rn rn }rn rn }rn rn else if (get_pcvar_num(zombie)==0 && is_user_connected(id))rn {rnrn }rn }

Archive › Old Forum Threads › General › Requests for DoD Plugins › Allies will not recognize Axis
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC