Page 1 of 1

Played Time (MySQL Support)

Posted: 01 Mar 2024, 03:53
by z0h1r-LK

Played Time

Description:
This plugin will save players played time using nVault or MySQL. Player can see his played time using a chat commands. Also you can get player played time using a native. Saving will be based on player SteamID, This add-on doesn't use method set_task 📈😉.

Screenshots:
Image

Commands:
/played or /online to display played time in chat.

• Native:
ze_get_user_time(id) - Will return player time played in seconds or will return -1 if player id is invalid.

Translation Key:

Code: Select all

MSG_PLAYED_TIME = "Played Time: !g%d!yd !g%02d!t:!g%02d!t:!g%02d"

Console Variables:

Code: Select all

ze_playedtime_savetype 0      // Played time save type (0 = nVault | 1 = MySQL).

About MySQL:
If you want to save data in MySQL, the add-on uses MySQL information from sql.cfg and if the database with the name in amx_sql_db already exists, it will The add-on automatically creates the Table if it does not exist!
So make sure the database already exists.

Downloads

ze_played_time.sma
Source Code :3
(5.75 KiB) Downloaded 50 times
ze_played_time.sma
Source Code :3
(5.75 KiB) Downloaded 50 times