01.03.2014, 06:59
Well. I'm sure there's a few ways to do it, but the most simplest way would be to create a timer. And at the end of the timers cycle, have it add 1 hour to their user data. Here's a example.
After that, you would need to forward "payday". So do the following.
pawn Код:
SetTimerEx("payday", 3600000, true, "i", playerid); //This would create a repeating timer for the playerid.
pawn Код:
forward payday(playerid);
public payday(playerid)
{
SendClientMessage(playerid, color, "Congratulations. You have earned 1+ score for playing one hour."); //sends them a message, making them aware of the payday.
PlayerInfo[playerid][pHours]++; //adds 1 hour to their user data.
return 1;
}

