score help for server
#2

Easy
do it like this:
On the top of your script,after the includes put:
pawn Код:
forward ScoreTimer(playerid);
Under OnPlayerConnect:
pawn Код:
SetTimerEx("ScoreTimer",60000,0,"d",playerid);
And in the end of the script,make a callback,here:
pawn Код:
public ScoreTimer(playerid)
{
    SetPlayerScore(playerid,(playerid)+1);
    return 1;
}
Hope i helped.
PS:now after every 60 seconds everyone will get +1 point
I've tested it,its working

Oh and,you see the "60000",it means every 60 seconds,its in ms,it means,miliseconds,1000=1 second,so if you want any player to get
1 point after every second,change the 60000 to 1000.
Reply


Messages In This Thread
score help for server - by Nathanael_Tavares - 04.10.2009, 22:12
Re: score help for server - by [XST]O_x - 04.10.2009, 23:19
Re: score help for server - by Nathanael_Tavares - 04.10.2009, 23:21
Re: score help for server - by pagie1111 - 05.10.2009, 10:41
Re: score help for server - by [XST]O_x - 05.10.2009, 10:43
Re: score help for server - by pagie1111 - 05.10.2009, 10:48
Re: score help for server - by dice7 - 05.10.2009, 12:04

Forum Jump:


Users browsing this thread: 1 Guest(s)