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

SDK Hooks Disabled for Game?(Battlegrounds 3)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mero Furuya
New Member
Join Date: Sep 2019
Old 09-02-2019 , 19:49   SDK Hooks Disabled for Game?(Battlegrounds 3)
Reply With Quote #1

I'm trying to use SDK Hooks with Battlegrounds 3. However, I tried the Think hook and damage hook with no luck. The print messages aren't being shown. I can see that OnClientPutInServer is being called though. Is there a way to check if the SDKHook is actually being set? Or could SDK hooks just be disabled for this game?

This is my SDK Tools version:
"SDK Tools" (1.9.0.6281) by AlliedModders LLC: Source SDK Tools


PHP Code:
#include <sourcemod>
#include <sdkhooks>

public Plugin:myinfo = {
    
name "Friendy Fire",
    
author "Slick",
    
description "Allows officers to kill teammates",
    
url ""
};

public 
OnClientPutInServer(client

    
PrintToChatAll("put in server");
    
SDKHook(clientSDKHook_OnTakeDamageOnTakeDamage);
    
SDKHook(clientSDKHook_ThinkThink);


public 
void Think(int entity)
{
    
PrintToChatAll("Think test");
}

public 
Action OnTakeDamage(int victimint &attackerint &inflictorfloat &damageint &damagetype)
{
    
PrintToChatAll("damage test");
    
damage 0.0;
    return 
Plugin_Changed;

Mero Furuya 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 10:59.


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