26.12.2010, 03:16
How can i make a code so the players get 1 score every IRL min?
Any help?
Thanks In Advanced!
Any help?
Thanks In Advanced!
//credits to retardedwolf
forward dailyScore (playerid);
timerDaily[playerid] = SetTimerEx ( "dailyScore", 60000, true, "d", playerid );
public dailyScore ( playerid )
{
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
return 1;
}
forward rdmscore(playerid);
public OnGameModeInit()
{
ScoreTime = SetTimerEx ( "rdmscore",60000,true,"d",playerid);
};
public rdmscore(playerid)
{
for(new i=0; i < MAX_PLAYERS; i++)
{
SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
}
return 1;
}
new moneyTimers[MAX_PLAYERS];
moneyTimers[playerid] = SetTimerEx("MoneyGive", 60000, true, "i", playerid);
KillTimer(moneyTimers[playerid]);
forward MoneyGive(playerid);
public MoneyGive(playerid)
{
GivePlayerMoney(playerid, 100);
}