Raised This Month: $ Target: $400
 0% 

Coding Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-07-2007 , 00:13   Re: Coding Help
Reply With Quote #6

This is not tested but I'm pretty sure it should work.

PHP Code:
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_event("Damage""hook_Damage""be""2>0");
}

public 
hook_Damage(id)
{
    new 
damage read_data(2);
    new 
name[32];
    
    
get_user_name(idname31);
    
client_print(0print_chat"%s took %i damage."namedamage);

hlstriker 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 01:16.


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