03.04.2013, 19:16
You can't expect your timer to be synced with the minutes change! If you want the player to receive his exp every time the server's minutes change this is what you do:
EDIT: TOO LATE.
pawn Код:
public OnGameModeInit()
{
SetTimer("PayDay", 10, true);
}
forward PayDay();
public PayDay()
{
new hh, mm, ss;
gettime( hh, mm, ss );
if(mm == 00)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
PlayerInfo[i][Exp] += 3;
}
}
return 1;
}