09.11.2012, 20:18
Add a timer on OnGameModeInit, something like SetTimer("hourlytime",1000*60*60,true);
Then add the function:
Then add the function:
pawn Code:
forward hourlytime();
public hourlytime()
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(CurrentXP[i]>=1000)
{
CurrentAge[i]++;
CurrentXP[i]-=1000;
}
}
}