08.05.2011, 13:31
Can someone make me simple timer filterscript in which every 2 minutes player will get 1 score
I will be happy if someone helps me!
![Huh?](images/smilies/confused.gif)
![Cheesy](images/smilies/biggrin.png)
![Wink](images/smilies/wink.png)
#include <a_samp>
forward GiveScore();
public OnFilterScriptInit()
{
SetTimer("GiveScore", 120000, true);
return 1;
}
public GiveScore()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetPlayerScore(i, GetPlayerScore(i) + 1);
}
}
}