01.07.2013, 14:12
Hello I want add to my server score timer
Each 10 minute = 1 point score , How I can do that ?
Each 10 minute = 1 point score , How I can do that ?
SetTimer("Score",1000*60*10, true); // 1ms x 60 x 10 = 10 minutes
forward Score();
public Score()
{
foreach(Player, i) // Loops through each player - Better than using a standard loop.
{
SetPlayerScore(i, GetPlayerScore(i) + 1); // Setting the player score - Gets the current score and adds one(1)
}
return true;
}