How do i record the amount of time player has spent in the server?
#7

Quote:
Originally Posted by Threshold
Посмотреть сообщение
You don't need a timer. Use unix timestamps.
Source: http://en.wikipedia.org/wiki/Unix_time

The function gettime() with no parameters returns a unix timestamp.
Source: https://sampwiki.blast.hk/wiki/Gettime

If you want, I can make a small script that records a player's time player, but it's up to you to implement it into your script.

@SickAttack - Wtf 0_o
Why would you need to use unix timestamps if SA-MP already has a function to get the time a player has been online for?

pawn Код:
NetStats_GetConnectedTime(playerid);
Source: https://sampwiki.blast.hk/wiki/NetStats_GetConnectedTime.
- Description: Gets the amount of time (in milliseconds) that a player has been connected to the server for.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)