Raised This Month: $2 Target: $400
 0% 

[L4D2]Clear drop items, non-death drops


Post New Thread Reply   
 
Thread Tools Display Modes
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, non-death drops
    Old 02-06-2019 , 05:26   [L4D2]Clear drop items, non-death drops
    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.


    Time lost after being lost:
    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",
    	"weapon_smg_silenced",
    	"weapon_shotgun_chrome",
    	"weapon_pumpshotgun",
    	"weapon_hunting_rifle",
    	"weapon_pistol",
    	"weapon_rifle_m60",
    	"weapon_autoshotgun",
    	"weapon_shotgun_spas",
    	"weapon_sniper_military",
    	"weapon_rifle",
    	"weapon_rifle_ak47",
    	"weapon_rifle_desert",
    	"weapon_sniper_awp",
    	"weapon_rifle_sg552",
    	"weapon_sniper_scout",
    	"weapon_grenade_launcher",
    	"weapon_pistol_magnum",
    	"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



    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 - 427 views - 3.6 KB)

    Last edited by AK978; 05-27-2019 at 06:32.
    AK978 is offline
    AK978
    Senior Member
    Join Date: Jun 2018
    Old 02-09-2019 , 21:01   Re: [l4d2]remove drop weapon
    Reply With Quote #2

    v1.1 修復刪除錯誤項目
    AK978 is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 02-10-2019 , 09:55   Re: [l4d2]remove drop weapon
    Reply With Quote #3

    测试中
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 is offline
    Mi.Cura
    Senior Member
    Join Date: Dec 2016
    Location: Brazil
    Old 02-10-2019 , 10:28   Re: [l4d2]remove drop weapon
    Reply With Quote #4

    I tried to compile because PrintToChat is in the Chinese language. And I got these errors:


    /home/groups/sourcemod/upload_tmp/phpA7jZ8C.sp(1): error 010: invalid function or declaration
    /home/groups/sourcemod/upload_tmp/phpA7jZ8C.sp(59): warning 213: tag mismatch
    /home/groups/sourcemod/upload_tmp/phpA7jZ8C.sp(85): warning 213: tag mismatch
    /home/groups/sourcemod/upload_tmp/phpA7jZ8C.sp(94): warning 213: tag mismatch

    The correct way would be to be in English, to be compiled for each language that was desired. My opinion
    __________________
    Mi.Cura is offline
    AK978
    Senior Member
    Join Date: Jun 2018
    Old 02-10-2019 , 11:04   Re: [l4d2]remove drop weapon
    Reply With Quote #5

    I use google translation....

    warning is ok
    can use

    I am not a professional staff compiled, I am sorry for my limited ability.
    Anyone is welcome to perfect it
    Attached Files
    File Type: sp Get Plugin or Get Source (clear_weapon_drop.sp - 395 views - 2.6 KB)

    Last edited by AK978; 02-10-2019 at 15:33.
    AK978 is offline
    Marttt
    Senior Member
    Join Date: Jan 2019
    Old 02-10-2019 , 18:59   Re: [l4d2]remove drop weapon
    Reply With Quote #6

    Well i removed the warnings, but need to test

    Changes:
    Spoiler
    Attached Files
    File Type: sp Get Plugin or Get Source (clear_weapon_drop.sp - 395 views - 2.6 KB)

    Last edited by Marttt; 02-10-2019 at 19:00.
    Marttt is offline
    Mi.Cura
    Senior Member
    Join Date: Dec 2016
    Location: Brazil
    Old 02-10-2019 , 20:25   Re: [l4d2]remove drop weapon
    Reply With Quote #7

    Quote:
    Originally Posted by AK978 View Post
    I use google translation....

    warning is ok
    can use

    I am not a professional staff compiled, I am sorry for my limited ability.
    Anyone is welcome to perfect it
    no problem, just to report the error while compiling.
    Thank you for sharing your work.
    __________________
    Mi.Cura is offline
    Mi.Cura
    Senior Member
    Join Date: Dec 2016
    Location: Brazil
    Old 02-10-2019 , 20:27   Re: [l4d2]remove drop weapon
    Reply With Quote #8

    Quote:
    Originally Posted by Marttt View Post
    Well i removed the warnings, but need to test

    Changes:
    Spoiler

    Thanks for this Marttt !

    PS: Mais uma vez obrigado por ajudar compartilhando seu conhecimento.
    __________________
    Mi.Cura is offline
    AK978
    Senior Member
    Join Date: Jun 2018
    Old 02-10-2019 , 23:25   Re: [l4d2]remove drop weapon
    Reply With Quote #9

    Thank you for your repair
    I will update the version for it.
    AK978 is offline
    Mi.Cura
    Senior Member
    Join Date: Dec 2016
    Location: Brazil
    Old 02-13-2019 , 08:14   Re: [l4d2]remove drop weapon
    Reply With Quote #10

    Just to report.
    I tested it and everything okay, works well.

    Thank you all
    __________________
    Mi.Cura is offline
    Reply


    Thread Tools
    Display Modes

    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 04:23.


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