Raised This Month: $ Target: $400
 0% 

HAM_TAKEDAMAGE problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 03-18-2010 , 11:31   HAM_TAKEDAMAGE problem
Reply With Quote #1

Well i started learning hamsandwich module, and i got idea for one plugin.
So now i try to make a test function to print the victim into the chat

PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage");
}

public 
fw_TakeDamage(inflictorvictim) {
    new 
v_name[32];
    
get_user_name(victimv_namesizeof(v_name) - 1);
    
    
client_print(inflictorprint_chat"You've just hit %s! Nice work."v_name);

So i don't know about this, but it only prints out the message when i hit myself o_0.
So can you help me?
Lure.d is offline
Send a message via Skype™ to Lure.d
 



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 08:47.


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