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