AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   when you touch the ground you die (https://forums.alliedmods.net/showthread.php?t=42270)

cspitbull06 07-30-2006 00:37

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

SweatyBanana 07-30-2006 00:47

Re: plugin needed!
 
http://forums.alliedmods.net/showthread.php?t=7999

VEN 07-30-2006 09:35

Re: plugin needed!
 
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)     } }

cspitbull06 07-30-2006 13:49

Re: when you touch the ground you die
 
Whenever I touch anything I die. Not the ground. if a touch a box I die. Please help.

Fat D 07-30-2006 14:46

Re: when you touch the ground you die
 
the problem is that boxes and the ground are the same objects on most maps. what are you exactly trying to do?

cspitbull06 07-30-2006 16:23

Re: when you touch the ground you die
 
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.

Guenhwyvar 07-30-2006 17:48

Re: when you touch the ground you die
 
Crazy but nice idea.

VEN 07-31-2006 13:59

Re: when you touch the ground you die
 
2 Attachment(s)
Ok, the attached plugins should feet your needs.
Version 0.2 should be better but try 0.1 also.


All times are GMT -4. The time now is 22:47.

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