i just want to give a badge or a gift when the player plays for example for about 5 consecutive days.
1 - consecutive day without quit the game (computer)?
2 - play 120 hours?
3- play for five day in different days?
ok, you could try like this:
1- add an event that every second add 1 to a variable, when a variable is more than 432000 do the event you want, if the player quit the game, the variable will lost the score.
2- add an event that every minute add 1 to a variable (and save every minut), when a variable is more than 7200 do the event you want.
3- make the data like 4/3/16 like this= 4316
if a player play the 4316, add 1 to a variable (because the first time he play the variable would be 0). if the player play another time to the same day, don't add nothing... because the time would be the same 4316.
if a player play another day, like 4/10/16, will be 41016, so is > than 4316, in this case you add 1 to your variable... and when the player score 5, just do the event you want.
let me know if is good like this