Raised This Month: $ Target: $400
 0% 

remove damage knife e zeus.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 01-06-2021 , 07:49   Re: remove damage knife e zeus.
Reply With Quote #1

PHP Code:
#pragma semicolon 1

#include <sourcemod>
#include <sdkhooks>
#include <sdktools>

public void OnClientPostAdminCheck(int client)
{
    
SDKHook(clientSDKHook_OnTakeDamageOnTakeDamage);
}

public 
Action SDK_OnTakeDamage(int victimint &attackerint &inflictorfloat &damageint &damagetypeint &weaponfloat damageForce[3], float damagePosition[3])
{
    if (
weapon != -1)
    {
        if (
damagetype DMG_SHOCK)
        {
            return 
Plugin_Handled;
        }
        else if (
damagetype DMG_SLASH)
        {
            return 
Plugin_Handled;
        }

        return 
Plugin_Continue;
    }

Check if there's a valid weapon, trigger_hurts can do these types of damage.
__________________
Ilusion9 is offline
Reply


Thread Tools
Display Modes

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


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