Raised This Month: $51 Target: $400
 12% 

Headshot check


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Killer zm
Senior Member
Join Date: Jun 2011
Old 05-21-2012 , 12:25   Headshot check
Reply With Quote #1

I want an simple code for mode zombie plague to check if an human is shoting only in the head off an zombie (victim) in some seconds. Please help . I need for a plugin.
Killer zm is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-22-2012 , 00:06   Re: Headshot check
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <cstrike>

#define m_LastHitGroup        75        

public plugin_init() 
{
    
RegisterHamHam_TakeDamage"player""ham_TakeDamage_Post");
}

public 
ham_TakeDamage_PostiVictimiInflictoriAttackerFloat:flDamagedamagebits )
{
    if( 
cs_get_user_teamiVictim ) == CS_TEAM_T && get_pdata_intiVictimm_LastHitGroup ) == HIT_HEAD )
    {    
        
//shot the zombie in the head
    
}

__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Reply



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 18:05.


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