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

Crash AcceptEntityInput


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
BeNq!
Senior Member
Join Date: Mar 2009
Old 04-15-2019 , 10:24   Crash AcceptEntityInput
Reply With Quote #1

Hello,

This is my plugin:

PHP Code:
#pragma semicolon 1

#include <sdkhooks> 
#include <sdktools> 

public OnEntityCreatedentity, const String:classname[] )

    if( 
StrEqualclassname"weapon_p90" ) || StrEqualclassname"weapon_g3sg1" ) || StrEqualclassname"weapon_scar20" ) )
    { 
        
SDKHookentitySDKHook_SpawnHook_OnEntitySpawn ); 
    } 

public 
Action:Hook_OnEntitySpawnentity )
{     
    if( !
IsValidEntityentity ) )
        return 
Plugin_Continue;
    
    
AcceptEntityInputentity"Kill" ); 
    return 
Plugin_Handled

Unfortunately, the server crashes. Please help me.
BeNq! 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 23:39.


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