View Single Post
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 09-24-2021 , 03:22   Re: [L4D2][WIN] Collision Hook
Reply With Quote #15

Quote:
Originally Posted by HarryPotter View Post
still crash when launch windows server
[CRASH] Accelerator uploaded crash dump: Crash ID: L5IE-P4GY-TQR5
Seems to be working atleast this code doesn't crash.

PHP Code:
#pragma semicolon 1
#pragma newdecls required

#include <sourcemod>
#include <sdktools>

enum EFilterResult
{
    
PASS_IGNORE = -1,
    
PASS_ALLOW 0,
    
PASS_BLOCK 1
};

public 
EFilterResult OnPassServerEntityFilter (int leftint right)
{
    return 
PASS_ALLOW;

Edit:
- Added linux support
- Fixed IsStaticProp function
Attached Files
File Type: txt l4d2_pass_filter.txt (837 Bytes, 45 views)
File Type: sp Get Plugin or Get Source (l4d2_pass_filter.sp - 50 views - 5.5 KB)
__________________
cry

Last edited by BHaType; 09-24-2021 at 04:43. Reason: fixing
BHaType is offline
Send a message via AIM to BHaType