Raised This Month: $59 Target: $400
 14% 

Don't Step on the Floor!


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   EKS (167)
CubicVirtuoso
Senior Member
Join Date: Sep 2004
Location: Canada
Old 08-14-2005 , 18: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 - 1780 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
atomic
Veteran Member
Join Date: Jan 2005
Location: What The Foot?
Old 08-14-2005 , 18:11  
Reply With Quote #2

YEEEEEEEEEEEy
atomic is offline
atomic
Veteran Member
Join Date: Jan 2005
Location: What The Foot?
Old 08-14-2005 , 18:13  
Reply With Quote #3

nononononononono i forgot to put on the modules sorry
atomic is offline
CubicVirtuoso
Senior Member
Join Date: Sep 2004
Location: Canada
Old 08-14-2005 , 18:16  
Reply With Quote #4

really? let me check agian. It worked fine for me what mod are you using? hehe and i just noticed i named the plugin the same as one of my other plugins... good ol templates Let me fix that error.
__________________
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
atomic
Veteran Member
Join Date: Jan 2005
Location: What The Foot?
Old 08-14-2005 , 18:17  
Reply With Quote #5

its was my mistake! i forgot to activate my modules !!! LOL BUMMER!"!!
atomic is offline
CubicVirtuoso
Senior Member
Join Date: Sep 2004
Location: Canada
Old 08-14-2005 , 18:18  
Reply With Quote #6

Ok Thats fixed.
__________________
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
atomic
Veteran Member
Join Date: Jan 2005
Location: What The Foot?
Old 08-14-2005 , 18:38  
Reply With Quote #7

somehow the beam effects are gone! or have never been there..
atomic is offline
CubicVirtuoso
Senior Member
Join Date: Sep 2004
Location: Canada
Old 08-14-2005 , 18:43  
Reply With Quote #8

What do you mean? Could you be a bit more specific?

BTW Thanks EKS for approval
__________________
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
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 08-14-2005 , 18:46  
Reply With Quote #9

i think he means the beams on the floor
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 08-14-2005 , 18:54  
Reply With Quote #10

Ehm...

Code:
new PLUGIN[]="Dynamic 3D Map"

Anyways, great other than that.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply


Thread Tools
Display Modes

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 16:22.


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