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

DoD Camper Punish ( v2.0e beta )

by Firestorm · 2006-07-08 · 2 replies · 5070 views · 119 downloads

Read the thread (3 posts)

From the first post

// DESCRIPTION:
rn// ============
rn//
rn// This Plugin is for Day of Defeat ONLY!
rn//
rn// This plugin is meant to "punish" campers:
rn// - it makes the specified camper glow blue
rn// - he/she can only use the knife/spade
rn// - campers health is set to 1hp
rn// - lose 1 kill per respawn
rn// - picked up weapons are removed
rn//
rn// (Note: even after the camper died and respawned
rn// all the above features are still active
rn// on him/her until you remove them from him/her.)
rn//
rn// With removing the "punishment" from the camper
rn// all will be normal again:
rn// - camper doesn't glow anymore
rn// - he/she can use all weapons again
rn// - campers health is set to 100hp
rn// - not losing kills anymore
rn
rn
// USAGE:rn// ======rn//rn// amx_cpunish = set camper to glow / knife&spade /rn// 1hp / steal 1 kill every respawnrn//rn// amx_nocpunish = set camper back to normal

rn
rn
// CHANGELOG:rn// ==========rn//rn// - 25.07.2004 Version 1.0arn// Initial Releasern//rn// - 25.07.2004 Version 1.0brn// - removed "weapon_knife" as it's not a valid DoD weaponrn// (thanks to SidLuke for pointing that out)rn// - cleaned the code a bit and removed the useless taskrn// to set campers health to 1hp and replaced it withrn// setting his health to 1 after respawn.rn// that should save some cpu usage.rn//rn// - 27.07.2004 Version 1.0crn// - when "unpunished", camper automatically switches backrn// to his/her primary gun.rn// - added a hud message that reminds the camper of capturingrn// the flags after he died and respawned.rn//rn// - 16.08.2004 Version 1.0drn// - fixed new campers set to melee onlyrn// if they joined after a punished camperrn// left without being unpunished.rn//rn// - 27.09.2004 Version 2.0arn// - optimized for amxx 0.20 and DoDx and DoDFun modulern// saving a lot of cpu usage with removingrn// the task to change to knife every 0.1 secondsrn// as the punished camper will only have a knife.rn// - added new feature:rn// punished camper's kills are decreased by 1 everytimern// he/she respawns until you "unpunish" him/her.rn//rn// - 28.09.2004 Version 2.0brn// - "punished" campers are still able to pick up weapons from the ground,rn// so here's the deal:rn// if they attack someone with a gun, the camper will get the health backrn// that was reduced by the attacker and the attacker's gun is removedrn// again.rn//rn// - 28.09.2004 Version 2.0crn// - "punished campers can pickup weapons, but drop them again immediately,rn// so they can't shoot anyone. and it's fun to see them run after the gunsrn// and try to pick them up, but drop them again :Prn//rn// - 14.10.2004 Version 2.0d (still beta :P)rn// - again changed the way the plugin handles weapon pickups:rn// the camper will get the gun totally removed and gets a knife/spadern// again.rn//rn// - 21.11.2004 Version 2.0ern// - general re-write of the plugin to optimize it a bitrn// - added check if player is already punished/normalrn// - added protection for admins with a reserved slot fromrn// being punished by other admins

Files

dod_camperpunish.sma Plugin Source 10 KB 119 dl Download Compile

The thread

All 3 posts from 3 people on DoD Camper Punish ( v2.0e beta ), kept as they were written.

F Firestorm
started this thread
Posts: 31
Threads: 30
Joined: Jul 2006
07-08-2006, 11:04 AM #1

// DESCRIPTION:rn// ============rn//rn// This Plugin is for Day of Defeat ONLY!rn//rn// This plugin is meant to "punish" campers:rn// - it makes the specified camper glow bluern// - he/she can only use the knife/spadern// - campers health is set to 1hprn// - lose 1 kill per respawnrn// - picked up weapons are removedrn//rn// (Note: even after the camper died and respawnedrn// all the above features are still activern// on him/her until you remove them from him/her.)rn//rn// With removing the "punishment" from the camperrn// all will be normal again:rn// - camper doesn't glow anymorern// - he/she can use all weapons againrn// - campers health is set to 100hprn// - not losing kills anymorernrn

// USAGE:rn// ======rn//rn// amx_cpunish <name> = set camper to glow / knife&spade /rn// 1hp / steal 1 kill every respawnrn//rn// amx_nocpunish <name> = set camper back to normal
rnrn
// CHANGELOG:rn// ==========rn//rn// - 25.07.2004 Version 1.0arn// Initial Releasern//rn// - 25.07.2004 Version 1.0brn// - removed "weapon_knife" as it's not a valid DoD weaponrn// (thanks to SidLuke for pointing that out)rn// - cleaned the code a bit and removed the useless taskrn// to set campers health to 1hp and replaced it withrn// setting his health to 1 after respawn.rn// that should save some cpu usage.rn//rn// - 27.07.2004 Version 1.0crn// - when "unpunished", camper automatically switches backrn// to his/her primary gun.rn// - added a hud message that reminds the camper of capturingrn// the flags after he died and respawned.rn//rn// - 16.08.2004 Version 1.0drn// - fixed new campers set to melee onlyrn// if they joined after a punished camperrn// left without being unpunished.rn//rn// - 27.09.2004 Version 2.0arn// - optimized for amxx 0.20 and DoDx and DoDFun modulern// saving a lot of cpu usage with removingrn// the task to change to knife every 0.1 secondsrn// as the punished camper will only have a knife.rn// - added new feature:rn// punished camper's kills are decreased by 1 everytimern// he/she respawns until you "unpunish" him/her.rn//rn// - 28.09.2004 Version 2.0brn// - "punished" campers are still able to pick up weapons from the ground,rn// so here's the deal:rn// if they attack someone with a gun, the camper will get the health backrn// that was reduced by the attacker and the attacker's gun is removedrn// again.rn//rn// - 28.09.2004 Version 2.0crn// - "punished campers can pickup weapons, but drop them again immediately,rn// so they can't shoot anyone. and it's fun to see them run after the gunsrn// and try to pick them up, but drop them again :Prn//rn// - 14.10.2004 Version 2.0d (still beta :P)rn// - again changed the way the plugin handles weapon pickups:rn// the camper will get the gun totally removed and gets a knife/spadern// again.rn//rn// - 21.11.2004 Version 2.0ern// - general re-write of the plugin to optimize it a bitrn// - added check if player is already punished/normalrn// - added protection for admins with a reserved slot fromrn// being punished by other adminsrn
W Wip
posted here
Posts: 1
Threads: 0
Joined: Aug 2006
08-23-2006, 10:19 PM #2

what should I use to open file or should I just FTP to server??? thanksrnrnWiprnrnKing of ^W^I^P^-Wip's Castle

Garion
posted here
Posts: 93
Threads: 9
Joined: Nov 2005
08-23-2006, 11:45 PM #3

you'll have to compile it. https://www.dodplugins.net/forums/showthread.php?t=50nthat's how to do it on your computer, or if your running Amxx 1.75 you can go to http://www.amxmodx.org/webcompiler.cgi and do it.

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