5 points per minute
#7

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
OnPlayerConnect

SetTimer("GivePoints",60000,true);
pawn Код:
public GivePoints()
{
     for(new i; i=0; i <MAX_PLAYERS; i++)
    {
          SetPlayerScore(i,+5);
    }
    return 1;
}
For every player online wouldn't that give them 5 score? so 2 players = 10 score.

pawn Код:
//under OnPlayerconnect
timerDaily[playerid] = SetTimerEx ("dailyScore", 60000, true, "d", playerid);

//under OnPlayerDisconnect
KillTimer(timerDaily[playerid]);
//bottom of the script
forward dailyScore (playerid);
public dailyScore (playerid)
{
    SetPlayerScore (playerid, GetPlayerScore(playerid) + 5);
    return 1;
}
worked like a charm for me.
Reply


Messages In This Thread
5 points per minute - by Jack_Rocker - 20.01.2011, 18:20
Re: 5 points per minute - by Alex_Valde - 20.01.2011, 18:22
Re: 5 points per minute - by WillyP - 20.01.2011, 18:23
Re: 5 points per minute - by Mikkel_Pedersen - 20.01.2011, 18:24
Re: 5 points per minute - by alpha500delta - 20.01.2011, 18:46
Re: 5 points per minute - by Mikkel_Pedersen - 20.01.2011, 18:54
Re: 5 points per minute - by Haydz - 20.01.2011, 18:54

Forum Jump:


Users browsing this thread: 1 Guest(s)