Garry's Mod

Garry's Mod

评价数不足
JTime( time-tracking + display )
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 角色扮演, 写实
文件大小
发表于
更新日期
4.086 KB
2020 年 12 月 12 日 上午 8:14
2020 年 12 月 15 日 下午 1:37
3 项改动说明 ( 查看 )

订阅以下载
JTime( time-tracking + display )

描述
This is a handy Way to keep track of playtime on RP Gamemodes like DarkRP/PoliceRP/MilitaryRP/StarwarsRP/CWRP/... !
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Why is this better than UTime?

UTime has a timer saving the time every 67 seconds and saving the time for everyone when a player leaves. Networking is done through NWFloats meaning that every time you get someones playtime you essentially run two function and whenever you update it you network it too. Resulting in 4 functions being called every second and a lot of unneeded Networking.

Mine only networks 1 time on joining and only saves when leaving the server. Increasing its performance heavenly.
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Server:
JTime:SaveJTime(ply)

Shared:
JTime:GetPlayJTime(ply)

--------------------------------------------------------------------------------------------------------------------------------------------------------------
If you experience any errors or bugs with this, feel free to leave a Comment below!

You are of course allowed to use this Addon on any Server you want!

-----------------------------------------------------------------------
Do not sell or reupload this Code
without my clear permission.
If you need it for something, then simply ask me!
Creators: Joe
Banner: Unknown_Fire
Help: Star
If you need support -> leave a comment
-----------------------------------------------------------------------

MY DISCORD: https://discord.gg/x6rtn3v
2 条留言
Ronald McDonald 2021 年 1 月 22 日 上午 1:40 
How do i view peoples playtime?
Ronald McDonald 2021 年 1 月 22 日 上午 1:25 
This came in handy