Player score
#6

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
At least 1 timer is needed in order to check the time. The explanation was kind of confusing, every 3 hours connected or in total?

A timer with interval of 1 hour would do and then:
pawn Код:
// every 3 hours currently connected:
if (!(((gettime() - gPlayerJoin[playerid]) / 3600) % 3))
{
    // level up..
}
or
pawn Код:
// every 3 hours in total:
PlayerInfo[playerid][TotalTime] = (gettime() - gPlayerJoin[playerid]) + PlayerInfo[playerid][TotalTime];

if (!((PlayerInfo[playerid][TotalTime] / 3600) % 3))
{
    // level up..
}
Sorry for the confusion but every three hours total.
Reply


Messages In This Thread
Player score - by Tass007 - 22.09.2016, 11:44
Re: Player score - by Shaheen - 22.09.2016, 12:28
Re: Player score - by Marricio - 22.09.2016, 12:38
Re: Player score - by Tass007 - 22.09.2016, 12:45
Re: Player score - by Konstantinos - 22.09.2016, 12:48
Re: Player score - by Tass007 - 22.09.2016, 13:07
Re: Player score - by Konstantinos - 22.09.2016, 13:11
Re: Player score - by StR_MaRy - 22.09.2016, 13:21
Re: Player score - by iLearner - 22.09.2016, 13:50
Re: Player score - by Marricio - 22.09.2016, 14:22

Forum Jump:


Users browsing this thread: 7 Guest(s)