General Played Time (MySQL Support)

Plug-ins compatibility with Zombie Escape Rebuild v1.x only.


Post Reply
User avatar
z0h1r-LK
Mod Developer
Mod Developer
Morocco
Posts: 486
Joined: 5 years ago
Location: The Red City ❤
Contact:

Played Time (MySQL Support)

#1

Post by z0h1r-LK » 1 month ago

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 41 times
ze_played_time.sma
Source Code :3
(5.75 KiB) Downloaded 41 times
Last edited by z0h1r-LK 1 month ago, edited 1 time in total.
Reason: Change amx_sql.cfg to sql.cfg

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 0 guests