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

Solved Problem with headshot detection.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 05-20-2020 , 15:44   Problem with headshot detection.
Reply With Quote #1

Hello,
I have this code and should give a point stored in a vault if it is headshot. More details down:
PHP Code:
new wpnclipammo
        wpn 
get_user_weapon(iAttackerclipammo)
        if(
iAttacker != iVictim && wpn == CSW_KNIFE )
        {
            if(
g_iIsHeadshot)
            {
                
pdData[iAttacker][Kills] += 1
                pdData
[iAttacker][Headshot] += 1
            
}
            else
            {
                
pdData[iAttacker][Kills] += 1
            
}
        } 
The problem is it count the kills, deaths, damage, but not the headshots.
See this picture:
Click for ScreenShot
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]

Last edited by Shadows Adi; 05-22-2020 at 18:05.
Shadows Adi 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 03:03.


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