Garry's Mod
Недостатньо оцінок
JTime( time-tracking + display )
   
Нагородити
До улюбленого
В улюблених
Прибрати
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Roleplay, Realism
Розмір файлу
Додано
Оновлено
4.086 KB
12 груд. 2020 о 8:14
15 груд. 2020 о 13:37

Підпишіться, аби завантажити
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 22 січ. 2021 о 1:40 
How do i view peoples playtime?
Ronald McDonald 22 січ. 2021 о 1:25 
This came in handy