Raised This Month: $ Target: $400
 0% 

Hud message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 11-23-2011 , 07:00   Re: Headshot hudmessage
Reply With Quote #5

Quote:
Originally Posted by fl0werD View Post
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

public plugin_init()
    
RegisterHam(Ham_Killed"player""PlayerKilledPost"1)

public 
PlayerKilledPost(victimattackershouldgib)
{
    if(!
is_user_connected(attacker))
        return;

    if(
victim == attacker)
        return;

    if(
get_pdata_int(victim75) != HIT_HEAD)
        return;

    
set_hudmessage(2001000, -1.00.3003.03.00.150.151)
    
show_hudmessage(attacker"::HEADSHOT::")

Why include ham and fakemeta for something you can do in a much simpler way, with lot less module communication?
Erox902 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 08:31.


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