Garry's Mod

Garry's Mod

70 个评价
Automatic Cleanup
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐, 角色扮演
文件大小
发表于
364.000 B
2018 年 6 月 16 日 下午 1:34
1 项改动说明 ( 查看 )

订阅以下载
Automatic Cleanup

描述
This (really little) script adds an automatic cleanup system to your server.
Someone requested for it: I don't know if it's currently available somewhere on the Workshop (I didn't find it), so I put mine.
The system uses a timer which is triggered every 1 minute, to avoid using a hook at every frame if you want a cleanup per hour.

You can set the time between every cleanup using the concommand called cleanup_time. You must put an integer value which represents the delay in MINUTES!

If you want to manage one cleanup per hour, then write cleanup_time 60 in your server.cfg.
20 条留言
Iris Joestar 2 月 11 日 上午 8:16 
so some how this was subscribed and i couldnt do anything, I dont remember subscribing to it
Nikotina 1 月 25 日 上午 10:23 
yo Advolt284. just try cleanup_time 0.1
Advolt284 [FR] 2024 年 8 月 9 日 下午 5:08 
hello, any chance I can get a cleanup everysecond ?
Waks4f 2024 年 7 月 20 日 上午 10:49 
bro I think your game is haunted
Orion ☂☂ 2024 年 6 月 8 日 上午 8:31 
ive tried various commands in sevrer.cfg but i think im doing wrong ones
Orion ☂☂ 2024 年 6 月 8 日 上午 8:28 
is their a way to trigger a map cleanup on startup? i have a entity that keeps respawning itself tho its not persistent
Diablos  [作者] 2023 年 4 月 16 日 上午 8:59 
I think they just restart their server at some point during the night. Thanks for the comment! Have a good day!
[ESC]Brendan1579 2023 年 4 月 16 日 上午 8:31 
thank you, you seem to be the only one with a tool like this which is insane to me. how do people run a 24/7 server on this game without a script for this?
Diablos  [作者] 2020 年 12 月 6 日 上午 1:41 
Hello,
nah I no more make little scripts like this - but this is easy-to-do if you take the code of this workshop item and you use the ents.FindByClass function to say "if this is NOT THIS entity then you can clean up (by using :Remove() function).
Thanks,
KlutchxKay 2020 年 12 月 4 日 下午 7:31 
Is there anything like this you could reccomend/make that ONLY despawns ragdoll corpses? I have an addon that spawns enemies every so often, and I don't want to clear everything, only the dead bodies. The corpses get very laggy. An addon that would only despawn ragdoll corpses would be awesome.