Raised This Month: $ Target: $400
 0% 

when you touch the ground you die


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cspitbull06
Member
Join Date: Dec 2005
Location: Marijuanaville
Old 07-30-2006 , 00:37   when you touch the ground you die
Reply With Quote #1

Can somebody make me a plugin so if you touch the ground anywhere you die.

Last edited by cspitbull06; 07-30-2006 at 01:25.
cspitbull06 is offline
Send a message via AIM to cspitbull06 Send a message via Yahoo to cspitbull06
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 07-30-2006 , 00:47   Re: plugin needed!
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=7999
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
VEN
Veteran Member
Join Date: Jan 2005
Old 07-30-2006 , 09:35   Re: plugin needed!
Reply With Quote #3

Copy/paste the code into the notepad and save file with the "sma" extension, then compile and install the plugin.

If you have any troubles, use this links:
http://wiki.amxmodx.org/index.php/Co...28AMX_Mod_X%29 - compiling plugins

http://wiki.amxmodx.org/index.php/Co...d_X#Installing - installing plugins

http://www.amxmodx.org/downloads.php - latest AMX Mod X version


Code:
#include <amxmodx> #include <fakemeta> #define PLUGIN_NAME "Fly or Die" #define PLUGIN_VERSION "0.1" #define PLUGIN_AUTHOR "VEN" // AMXX < v1.75 support #define FL_ONGROUND (1<<9) public plugin_init() {     register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)     register_forward(FM_PlayerPreThink, "forward_player_prethink") } public forward_player_prethink(id) {     if (is_user_alive(id) && (pev(id, pev_flags) & FL_ONGROUND)) {         set_pev(id, pev_frags, 1.0 + pev(id, pev_frags))         user_kill(id)     } }
VEN is offline
cspitbull06
Member
Join Date: Dec 2005
Location: Marijuanaville
Old 07-30-2006 , 13:49   Re: when you touch the ground you die
Reply With Quote #4

Whenever I touch anything I die. Not the ground. if a touch a box I die. Please help.
cspitbull06 is offline
Send a message via AIM to cspitbull06 Send a message via Yahoo to cspitbull06
Fat D
Senior Member
Join Date: Jun 2006
Old 07-30-2006 , 14:46   Re: when you touch the ground you die
Reply With Quote #5

the problem is that boxes and the ground are the same objects on most maps. what are you exactly trying to do?
Fat D is offline
cspitbull06
Member
Join Date: Dec 2005
Location: Marijuanaville
Old 07-30-2006 , 16:23   Re: when you touch the ground you die
Reply With Quote #6

Okay. I have entmod and i covered ct spawn with boxes so it isnt the ground.
The map is de_dust2. And I copyed boxes and made a "kz map" in dust2. So it starts in ct spawn, goes long, to t spawn, to tunnels, to b , to mid. and the boxes arent touching the ground. So I want it if they fall off the boxes they die and respawn.
cspitbull06 is offline
Send a message via AIM to cspitbull06 Send a message via Yahoo to cspitbull06
Guenhwyvar
AMX Mod X Beta Tester
Join Date: Jul 2005
Location: Berlin / Germany
Old 07-30-2006 , 17:48   Re: when you touch the ground you die
Reply With Quote #7

Crazy but nice idea.
Guenhwyvar is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 07-31-2006 , 13:59   Re: when you touch the ground you die
Reply With Quote #8

Ok, the attached plugins should feet your needs.
Version 0.2 should be better but try 0.1 also.
Attached Files
File Type: sma Get Plugin or Get Source (dont_fall_v01.sma - 676 views - 601 Bytes)
File Type: sma Get Plugin or Get Source (dont_fall_v02.sma - 746 views - 772 Bytes)
VEN is offline
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 22:47.


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