27.09.2016, 11:37
Quote:
I want to record the players connection time and save it into PlayerInfo[playerid][TotalTime]
Whenever a player reconnects it gets the existing TotalTime and updates it to the new TotalTime (Including the new amount of time the player is connected) Another part is every 3 hours a player hits e.g 3 hours, 6 hours, 9 hours they get +1 score. |
You need to store it in some kind of database.
The most commonly used is MySQL.
Check out this thread:
https://sampforum.blast.hk/showthread.php?tid=56564