Garry's Mod

Garry's Mod

評價次數不足
JTime( time-tracking + display )
   
獎勵
加入最愛
已加入最愛
移除最愛
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Roleplay, Realism
檔案大小
發佈於
更新時間
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