←  [RSS] Pluginy

AMXX.pl: Support AMX Mod X i SourceMod

»

Furien Anti-Camp (1.0.0 - 27.08.2013)

Adminek AMXX.PL's Photo Adminek AMXX.PL 27.08.2013

Posted Image

.: Description :.

Furien Anti-Camp is specially made for Furien Server as it only checks for CTs. If they don't move from a given radius at a given time they will be punished by loosing money / loosing health and / or it will be added a blast circle and a sound.
You can also enable Anti-C4 Camp, so if CTs stay too long near dropped C4 they will be punished too.

.: Requirements :.

  • A Steam Server
  • (Additonal - Furien V64)
.: Defines :.



PHP Code:


// ===============================================================================
// General
// ===============================================================================

// Time in Seconds how fast the Plugin checks for camping
#define CHECK_FREQ 1.0

// Radius in Units in which the player will be checked for camping in CHECK_FREQ
#define CHECK_RADIUS 400.0

// Time in Seconds how long camping in a area is allowed
#define CAMP_MAX 10.0

// ===============================================================================
// Camping - Punishments
// ===============================================================================

// Comment if you don't want the blast ring around campers
#define CAMPER_BLAST

// Comment if you don't want the camper sound
//#define CAMPER_SOUND

#if defined CAMPER_SOUND

// Sound File for Camper Sound
#define CAMPER_SOUND_FILE "player/heartbeat1.wav"

#endif

// Comment if you don't want the camper losing money
#define CAMPER_MONEY

#if defined CAMPER_MONEY

// Sets the amount of money lost per intervall for being a camper
#define CAMPER_MONEY_AMOUNT 500

#endif

// Comment if you don't want the camper losing health
#define CAMPER_HEALTH

#if defined CAMPER_HEALTH

// Sets the amount of health lost per intervall for being a camper
#define CAMPER_HEALTH_AMOUNT 5

#endif

// Comment if you don't want a chat message for the camper
#define CAMPER_ADVICE

#if defined CAMPER_ADVICE

// Message for Camper
#define CAMPER_MSG "You're camping. You will be punished! Stop camping now!"

#endif

// ===============================================================================
// Anti-C4-Camp
// ===============================================================================

// Comment if you don't want C4 Camping Check
#define CHECK_C4

#if defined CHECK_C4

// Radius in Units in which the player will be check for being around C4
#define C4_RADIUS 300.0

// Message for players that are near C4
#define C4_MESSAGE "You are too near to the C4, you have %1.f to get away from the C4."

// Time in Seconds how long you're allowed to camp at Bomb
#define C4_CAMPTIME 15.0

// ===============================================================================
// Camping - Punishments
// ===============================================================================

// Comment if you don't want the blast ring around campers
#define C4_BLAST

// Comment if you don't want the camper sound
//#define C4_SOUND

#if defined C4_SOUND

// Sound File for Camper Sound
#define C4_SOUND_FILE "player/heartbeat1.wav"

#endif

// Comment if you don't want the camper losing money
#define C4_MONEY

#if defined C4_MONEY

// Sets the amount of money lost per intervall for being a camper
#define C4_MONEY_AMOUNT 500

#endif

// Comment if you don't want the camper losing health
#define C4_HEALTH

#if defined C4_HEALTH

// Sets the amount of health lost per intervall for being a camper
#define C4_HEALTH_AMOUNT 5

#endif

#endif
.: Bugs :.
  • None found yet, if you find one, please report it.
.: Credits :.
  • VEN - CS Bomb Scripting Tutorial



Attached Files Posted ImageGet Plugin or Get Source (furien_anticamp.sma - 12.5 KB)

Wyświetl pełny artykuł
Quote