Help play time plugins

c0d3

Пользователь
Регистрация
16 Июн 2017
Сообщения
110
Симпатии
6
Пол
Мужской
Hello i find one plugin in google i like its using mysql but i want to ask plugin save all time in minutes and its hard to see how many hours you stay in server i want to ask you its possible to save time in hours , and to /toptime to show same thing :
 

Вложения

Safety1st

Заблокированные
Пользователь
Регистрация
10 Ноя 2017
Сообщения
114
Симпатии
36
Пол
Мужской
Saving time in seconds is OK (it's just like computers uses binary system but we use decimal one). You just need convert time for humans before print. You could use natives like:
C++:
new szTime[123]
get_time_length( id, pt_get_user_played_time(id), timeunit_hours, szTime, charsmax(szTime) )

// you must add register_dictionary("time.txt") in plugin_init()
 
Последнее редактирование:
Сверху Снизу