03.04.2011, 12:01
how can i make a score timer if you are in the server for 1 min every 1minute 3 score ?
how can i make a score timer if you are in the server for 1 min every 1minute 3 score ?
|
OnPlayerConnect(playerid)
SetTimer("Score_Timer", 60000, true);
forward Score_Timer(playerid);
public Score_Timer(playerid)
{
new playerscore = GetPlayerScore(playerid);
SetPlayerScore(playerid, playerscore+=3);
return 1;
}
SetTimerEx("score", 5000, true, "i", playerid);
forward score(playerid);
public score(playerid)
{
SetPlayerScore(playerid, GetPlayerScore(playerid) + 3);
}
public OnPlayerConnect(playerid)
{
SetTimerEx("Score", 60000, true, "i", playerid);
return 1;
}
forward Score(playerid);
public Score(playerid) { SetPlayerScore(playerid, GetPlayerScore(playerid)+3); }