Raised This Month: $ Target: $400
 0% 

Don't Step on the Floor!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   EKS (166)
CubicVirtuoso
Senior Member
Join Date: Sep 2004
Location: Canada
Old 08-14-2005 , 17:09   Don't Step on the Floor!
Reply With Quote #1

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"
Attached Files
File Type: sma Get Plugin or Get Source (amx_dontstep.sma - 2109 views - 8.2 KB)
__________________
Sig Under Construction.
CubicVirtuoso is offline
Send a message via ICQ to CubicVirtuoso Send a message via AIM to CubicVirtuoso Send a message via MSN to CubicVirtuoso Send a message via Yahoo to CubicVirtuoso
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode