Raised This Month: $ Target: $400
 0% 

Coding Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Stars
Junior Member
Join Date: Nov 2007
Old 11-07-2007 , 02:08   Re: Coding Help
Reply With Quote #9

Quote:
Originally Posted by hlstriker View Post
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);


PS, thanks that was really useful.
Stars 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