This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[REQ] If user is contacted by nade, he dies


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
~`Blaze~`
Junior Member
Join Date: Nov 2008
Old 11-29-2008 , 10:27   [REQ] If user is contacted by nade, he dies
Reply With Quote #1

I need a simple plugin that will make it where, if you get hit by any nade, you die!
~`Blaze~` is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-29-2008 , 10:33   Re: [REQ] If user is contacted by nade, he dies
Reply With Quote #2

you mean when grenade touches player?
__________________
xPaw is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-29-2008 , 10:52   Re: [REQ] If user is contacted by nade, he dies
Reply With Quote #3

Try that :

Code:
    #include <amxmodx>     #include <hamsandwich>     #include <fakemeta>         new gi_MaxClients;     #define IsPlayer(%1)  ( 1 <= %1 <= gi_MaxClients )         public plugin_init ()     {         RegisterHam ( Ham_Touch, "grenade", "Event_Touch" );     }         public plugin_cfg ()     {         gi_MaxClients = get_maxplayers ();     }         public Event_Touch ( const i_Grenade, const i_Other )     {         if ( IsPlayer ( i_Other ) )         {             ExecuteHam ( Ham_Killed, i_Other, pev ( i_Grenade, pev_owner ), false );         }     }
__________________

Last edited by Arkshine; 11-29-2008 at 10:56.
Arkshine is offline
Reply



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 12:43.


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