06.11.2010, 17:56
First you'll need to make a timer like this
Than public it:
Untested. I hope it will work
pawn Code:
SetTimer("OnlineTimer",100000,true);
//OnlineTimer is the name of a timer
//100000 is the time = 10 min
//false is if the timer will repeat
//EDIT: put this under your OnPlayerSpawn or OnPlayerConnect callback.
pawn Code:
public OnlineTimer
{
new score = GetPlayerScore(playerid);
SetPlayerScore(playerid,score+1);
return 1;
//EDIT: Put this at the bottom of your script.
}