Hey PeeJay,
The code I used for SAFA paychecks has long since disappeared. I've looked through my PC, can't find any files.
However the topic you've linked is correct, you'll need to collect player data every N days, compare it against the last set of data, and work out how much to pay them based on your rules e.g. $1k per 1 fuel stat.
To automate this, there's a Players API @ http://convoytrucking.net/api/players/{player id}, e.g. my stats are at http://convoytrucking.net/api/players/10039/
As for sending the actual money to players, from my experience I did it manually, but someone in the linked topic mentioned creating a AutoHotKey script to automate typing "/give [player name] [amount] [comment]" in the chatbox.
The code I used for SAFA paychecks has long since disappeared. I've looked through my PC, can't find any files.
However the topic you've linked is correct, you'll need to collect player data every N days, compare it against the last set of data, and work out how much to pay them based on your rules e.g. $1k per 1 fuel stat.
To automate this, there's a Players API @ http://convoytrucking.net/api/players/{player id}, e.g. my stats are at http://convoytrucking.net/api/players/10039/
As for sending the actual money to players, from my experience I did it manually, but someone in the linked topic mentioned creating a AutoHotKey script to automate typing "/give [player name] [amount] [comment]" in the chatbox.