Raised This Month: $ Target: $400
 0% 

Grenade stuff + Kill money


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 10-08-2007 , 11:13   Re: Grenade stuff + Kill money
Reply With Quote #4

This is actually much easier with engine, since the "register_touch" function allows you to input the two classnames.

So we don't have to examine the two touchers - we know they are a player and a nade.
PHP Code:
#include <amxmodx>
#include <engine>
public plugin_init() 
{
    
register_touch("player","grenade","on_touch"// call the function "on_touch" when a grenade and player collide
}
public 
on_touch(id,nade)
{
    
entity_set_float(nade,EV_FL_nextthink,halflife_time()+0.01)

purple_pixie is offline
 



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:09.


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