Jump to content

I'm trying to add time played and sesion time


Resmurf

Recommended Posts

Hi , maybe i can help

The function to get the time spent on the server is

getTickCount 

This function returns amount of time that your system has been running in milliseconds

If you want to save it , you'll need the following functions

  
executeSQLCreateTable("NAME", "STRING, INT") --INT is what is contains--> 
executeSQLSelect ( string tableName, string fields, [ string conditions, int limit ] ) --Here you will select the db 
executeSQLUpdate ( string tableName, string set, [ string conditions ] ) --It updates the current table 
  

If you will need an example , just announce me

Good Luck with the scripting

@Edit: if you want to get he's time , from when he logins in , until he quit (or he logged out) use

onPlayerLogin  
--and 
onPlayerQuit --For until he quit 
onPlayerLogout --for until he loggout  

I hope i helped you

Edited by Guest
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...