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

[L4D2]Clear drop items


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
AK978
Senior Member
Join Date: Jun 2018
Plugin ID:
6427
Plugin Version:
1.6
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    [L4D2]Clear drop items
    Old 02-06-2019 , 05:26   [L4D2]Clear drop items
    Reply With Quote #1

    Description:
    Delete discarded items


    Reason for creation:
    My server has too many entities. Write this plugin to reduce the possibility of server crashes.
    The total number of custom map entities is too large. If you have a lot of plugins installed or modified the number of entities, you can try.


    How long does it take to clear after discarding:
    sm_drop_clear_time ""


    Save Log:
    logs/remove_drop_weapon.log


    classname:
    https://developer.valvesoftware.com/..._L4D2_Entities

    line 7:
    Modify the "weapon name" to support other games(The following is the L4D2 version)
    Code:
    new const String:ItemDeleteList[][] =
    {
    	"weapon_smg_mp5",
    	"weapon_smg_silenced",
    	"weapon_smg",
    	"weapon_shotgun_chrome",
    	"weapon_pumpshotgun",
    	"weapon_hunting_rifle",
    	"weapon_autoshotgun",
    	"weapon_shotgun_spas",
    	"weapon_sniper_military",
    	"weapon_rifle_m60",
    	"weapon_rifle_ak47",
    	"weapon_rifle_desert",
    	"weapon_rifle_sg552",
    	"weapon_rifle",
    	"weapon_sniper_awp",
    	"weapon_sniper_scout",
    	"weapon_grenade_launcher",
    	"weapon_pistol_magnum",
    	"weapon_pistol",
    	"weapon_molotov",
    	"weapon_pipe_bomb",
    	"weapon_vomitjar",
    	"weapon_defibrillator",
    	"weapon_pain_pills",
    	"weapon_adrenaline",	
    	"weapon_melee"
    };


    version:
    clear_weapon_drop.smx
    v1.0 new plugin
    v1.1 dug fix
    v1.2 Change print language (Mi.Cura)
    v1.3 bug fix (Marttt)
    v1.4 change some code to support other games
    v1.5 bug fix
    v1.6 bug fix
    v1.7 bug fix
    v1.8 add hook player_disconnect(z), EntIndexToEntRef(HarryPotter)
    StrContains change StrEqual



    My plugins

    贊助網址 Donation URL
    https://pay.ecpay.com.tw/CreditPayme...=3050613&Enn=e
    Attached Files
    File Type: sp Get Plugin or Get Source (clear_weapon_drop.sp - 677 views - 4.7 KB)

    Last edited by AK978; 01-25-2021 at 09:59.
    AK978 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 07:05.


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