PDA

View Full Version : DoD Camper Punish ( v2.0e beta )


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

// USAGE:
// ======
//
// amx_cpunish <name> = set camper to glow / knife&spade /
// 1hp / steal 1 kill every respawn
//
// amx_nocpunish <name> = set camper back to normal

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

Wip
08-23-2006, 10:19 PM
what should I use to open file or should I just FTP to server??? thanks

Wip

King of ^W^I^P^-Wip's Castle

Garion
08-23-2006, 11:45 PM
you'll have to compile it. http://www.dodplugins.net/forums/showthread.php?t=50
that'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.