View Single Post
Author Message
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 12-27-2023 , 14:51   SDK Beautiful Hooks not working anymore in latest sourcemod version
Reply With Quote #1

Global buyzone and bombzone work no more. any ideas or fixes for latest sourcemod stable?

HTML Code:
#include <sdktools>
#include <sdkhooks>

#define VERSION "0.1.0"

public Plugin:myinfo = {
	name = "Plant Anywhere",
	author = "Mitchell",
	description = "Plant the bomb anywhere.",
	version = VERSION,
	url = "SnBx.info"
}

public OnPluginStart() 
{
	CreateConVar("sm_plantanywhere_version", VERSION, "Version of Plant Anywhere", FCVAR_PLUGIN|FCVAR_DONTRECORD|FCVAR_SPONLY|FCVAR_NOTIFY);

	HookEvent("player_spawn", Event_PlayerSpawn);
}

public Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) 
{
	new client = GetClientOfUserId(GetEventInt(event, "userid"));
	if(!IsClientInGame(client) || !IsPlayerAlive(client))
		return Plugin_Handled;

	SetEntProp(client, Prop_Send, "m_bInBuyZone", 1);
	return Plugin_Continue;
}

HTML Code:
#include <sdktools>
#include <sdkhooks>

#define VERSION "0.1.0"

public Plugin:myinfo = {
	name = "Plant Anywhere",
	author = "Mitchell",
	description = "Plant the bomb anywhere.",
	version = VERSION,
	url = "SnBx.info"
}

public OnPluginStart() 
{
	CreateConVar("sm_plantanywhere_version", VERSION, "Version of Plant Anywhere", FCVAR_PLUGIN|FCVAR_DONTRECORD|FCVAR_SPONLY|FCVAR_NOTIFY);

	HookEvent("player_spawn", Event_PlayerSpawn);
}

public Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) 
{
	new client = GetClientOfUserId(GetEventInt(event, "userid"));
	if(!IsClientInGame(client) || !IsPlayerAlive(client))
		return Plugin_Handled;

	SetEntProp(client, Prop_Send, "m_bInBombZone", 1);
	return Plugin_Continue;
}
Ark_Procession is offline