Raised This Month: $32 Target: $400
 8% 

[L4D2] Who called the horde?


Post New Thread Reply   
 
Thread Tools Display Modes
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 12-06-2022 , 12:29   Re: [L4D2] Who called the horde?
Reply With Quote #21

PHP Code:
#include <sourcemod>

public void OnPluginStart()
{
    
HookEvent("create_panic_event"Event_Panic);
}

void Event_Panic(Event event, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(event.GetInt("userid"));

    if (
client && IsClientInGame(client))
    {
        
PrintToChatAll"\x03[Panic Event]\x01 %N started the panic event!"client);
    }
    else
    {
        
PrintToChatAll"\x03[Panic Event]\x01 Panic event has been started!");
    }

Attached Files
File Type: sp Get Plugin or Get Source (who_panic.sp - 126 views - 502 Bytes)
__________________
Marttt is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 12-07-2022 , 08:36   Re: [L4D2] Who called the horde?
Reply With Quote #22

trigger_horde_notify
__________________
HarryPotter is offline
replay_84
Senior Member
Join Date: Jun 2021
Old 12-27-2022 , 20:36   Re: [L4D2] Who called the horde?
Reply With Quote #23

Sorry for the late reply.

Thanks guys. Great stuff

Last edited by replay_84; 12-27-2022 at 20:37.
replay_84 is offline
replay_84
Senior Member
Join Date: Jun 2021
Old 12-29-2022 , 13:06   Re: [L4D2] Who called the horde?
Reply With Quote #24

Quote:
Originally Posted by HarryPotter View Post
[SM] Failed to load plugin "trigger_horde_notify.smx": Unable to load plugin (bad header).




L4d1
replay_84 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 12-29-2022 , 13:12   Re: [L4D2] Who called the horde?
Reply With Quote #25

Quote:
Originally Posted by replay_84 View Post
[SM] Failed to load plugin "trigger_horde_notify.smx": Unable to load plugin (bad header).




L4d1
update your sourcemod version v1.11
__________________
HarryPotter is offline
replay_84
Senior Member
Join Date: Jun 2021
Old 12-29-2022 , 13:26   Re: [L4D2] Who called the horde?
Reply With Quote #26

Looks like it already is v1.11


Quote:
] sm
SourceMod 1.11.0.6911, by AlliedModders LLC
replay_84 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 12-29-2022 , 14:20   Re: [L4D2] Who called the horde?
Reply With Quote #27

Maybe you are using a wrong .smx file, try compiling local.
__________________
Marttt is offline
replay_84
Senior Member
Join Date: Jun 2021
Old 12-29-2022 , 15:06   Re: [L4D2] Who called the horde?
Reply With Quote #28

I tried compiling using https://spider.limetech.io/



Uploaded the following files:

Quote:

colors.inc

left4dhooks_stocks.inc

left4dhooks.inc

left4dhooks_anim.inc

left4dhooks_silver.inc

left4dhooks_lux_library.inc

multicolors.inc

dhooks.inc


When not adding dhooks.inc I just get a "fatal error 183: cannot read from file: "dhooks" line

With dhooks added I get a wall of errors. Am I using it wrong?



(Local never works for me anyways.)
replay_84 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 12-29-2022 , 15:23   Re: [L4D2] Who called the horde?
Reply With Quote #29

You should fix you local setup or will always be dependent to sites like these,
btw Spider compiler uses SM1.10 nowadays, so you may have some incompatibilities.

If you pay attention after compiling in spider it displays:

PHP Code:
SourcePawn Compiler 1.10
Copyright 
(c1997-2006 ITB CompuPhase
Copyright 
(c2004-2018 AlliedModders LLC 
So using features like "dhooks" that had changes between SM1.10 to SM1.11 has greater probability to FAIL.

If your file doesn't have 3rd-party #includes you can compile it here:

https://www.sourcemod.net/compiler.php
__________________

Last edited by Marttt; 12-29-2022 at 15:24.
Marttt is offline
replay_84
Senior Member
Join Date: Jun 2021
Old 12-30-2022 , 07:09   Re: [L4D2] Who called the horde?
Reply With Quote #30

Did not realize it uses an obsolete sourcemod version. Thanks for the info. I know the other link. That's how I compiled long ago, before someone linked spider to me.
replay_84 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 06:42.


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