Email and last online ysi login?
#1

Hello, I want the email script to be like: I login and everything, Then spawning and get's a dialog there i need to input my email, and press ok, And next time i connect the dialog not show because i have puted it in before.
And i want to show in login like: "Last online: 4 hours" and if i make stats command i want like: "Total hours: 120" is it any ways to show that with ysi?
Also, I want email system and a count system as counting how many hour since player was online and total hours he have played.

Here is script:
http://pastebin.com/be26XsgF
Reply
#2

You're wishing more than a kid on christmas, you should try doing that yourself,

The time online calculation should be done that you run a timer on the gamemode with a minute interval, and every time a minute passes, it adds it up to a variable, let's say pOnlineTime[playerid], and when the player disconnects, you just enter it to your files.

The last online should be done pretty much the same way, expect you need another variable to store that in, and every time the player connects, you reset the variable and it starts counting it.
Reply
#3

DIALOG_STYLE_INPUT

Quote:

You're wishing more than a kid on christmas, you should try doing that yourself

Exactly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)