Raised This Month: $ Target: $400
 0% 

damage event


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Zenith77
Veteran Member
Join Date: Aug 2005
Old 04-23-2007 , 11:53   Re: damage event
Reply With Quote #10

It basically filters out events you don't want/need. So let's say you're using the DeathMsg event to find a killer, and slap him or something (just an example). But, with this, you can't slap an entity or the more common world spawn entity (index: 0). So if killer is the first paramter passed you would use:

Code:
register_event("DeathMsg", "Event_Death", "a", "1!0"); // 1 != 0 public Event_Death() {      // We don't need to check if the killer is connected or alive (chances are he still is when this code is executed, but you can go ahead and do is_user_alive() for safety purposes).      new killer = read_data(1);      user_slap(killer); }

Hope I did everything right, typed it up in the little post box at school.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 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 06:36.


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