AMX Don't Step on Ground
A triggered hurt defined by verticle height
by CubicVirtuos
August 2005
Requested by: atomic
This was a fun plugin to write and I found people catch onto it really quick Admins are able to set "floor" posistions. Basically what this does is reads their verticle height. Then it will count-down (defined below) in seconds before it alerts the players to seak high-ground. If the player is not above or below the floor posistion they will receive 50 dmg. Players can also jump over the floor posistion if they time it correctly. Admins are able to set multiple floor posistions and also clear the entire floor posistion array.
Maximum of 20 floors.
commands:
amx_setdontstep : Sets the floor posistion of where the admin is currently standing
amx_cleardontstep : Clears all the floor posistions
amx_toggledontstep : Toggles the plugin on and off
/stepinfo : Displays help MOTD window
Enjoy!
As per usual comments/suggestions are welcome.
Note: Set the define parameter:
#define MINTIME 60 : This is the ABSOLUTE minimum time that the effect will trigger
#define MINRANDOM 60 : This is the minimum limit of the random number
#define MAXRANDOM 120 : This is the maximum limit of the random number
UPDATE TO 2.00:
- Added color effects green/red
- Added warning sound
- Added random effect
UPDATE to 2.01:
- Removed color effects
- Changed sounds
- Added enable toggle
- Added /stepinfo
Code:
#include <amxmodx> // Amx mod include definitions
#include <fun> // Fun Module
#include <amxmisc> // Useful functions
#include <engine> // Engine Plugin
new PLUGIN[]="Don't Step"
new AUTHOR[]="CubicVirtuoso"
new VERSION[]="2.02"