22.09.2016, 13:11
If a player has less than 3600 seconds in total, mod 3 will give 0 so to fix it:
pawn Код:
PlayerInfo[playerid][TotalTime] = (gettime() - gPlayerJoin[playerid]) + PlayerInfo[playerid][TotalTime];
if (PlayerInfo[playerid][TotalTime] >= 3600 && !((PlayerInfo[playerid][TotalTime] / 3600) % 3))
{
// level up..
}