17.08.2011, 18:57
well actually im confused, i got this
i just want that their score goes up to 1 every 2 hour like
2 hours = score 1
4hours = score 2
pawn Код:
forward OnlineTimeUpdate(playerid);
public OnlineTimeUpdate(playerid)
{
PlayerData[playerid][MinutesPlayed] ++;
if(PlayerData[playerid][MinutesPlayed] == 60)
{
PlayerData[playerid][HoursPlayed] ++;
PlayerData[playerid][MinutesPlayed] = 0;
}
return 1;
}
2 hours = score 1
4hours = score 2