Posts: 81
Threads: 23
Joined: Aug 2013
Reputation:
0
How I can make to check players connected time not afk time for example if:
Player X play like 20 minutes and he goes afk with /sleep for 40 at payday to receive 0.20 played time and one RP.
If Player X play around 15 minutes and he quit and enter again at 59 to get that 0.15 played time.
If Player X play 45 minutes and go AFK (just esc) to get 0.45 played time.
Posts: 81
Threads: 23
Joined: Aug 2013
Reputation:
0
And this will make any lag?
@Calvin, I have no code atm, so I have to take it from deadpool, could you help me a little to "advance" with it please, cause I am not that good, this will require some rows in DB?
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
Use De4dpOol's code to increase the playtime, and then you can use mine to check if he's AFK.
If you want to save his time, you need to save using either SQL or files, if you don't know how to do so, i would recommend looking up some tutorials.
Posts: 81
Threads: 23
Joined: Aug 2013
Reputation:
0
For payday code and /stats code I need a little more help if you could help me.
//At Payday//
new Prize[MAX_PLAYERS];
Prize[playerid] = Time/100;
GivePlayerMoney....
Idk if this would work.
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
No you have to set a repeating timer of an hour i guess, and then he told you could do something like that in that timer.
Posts: 81
Threads: 23
Joined: Aug 2013
Reputation:
0
Still can't figure it out on PAYDAY, what to put to set his played time.