Timer Not Working
#9

Try this and let me know if it works.

pawn Код:
new ScoreTimer[MAX_PLAYERS]; // Add this top of your script

public OnPlayerSpawn(playerid)
{
    ScoreTimer[playerid] = SetTimerEx("ScoreTimer", 180000, true, "i", playerid);
    return 1;
}

forward ScoreTimer(playerid);
public ScoreTimer(playerid)
{
    SetPlayerScore(playerid, GetPlayerScore(playerid) + 2);
    SendClientMessage(playerid, COLOR_LBLUE, "You have played for 3 minutes, you have earned +2 score!");
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    KillTimer(ScoreTimer[playerid]);
    return 1;
}
Reply


Messages In This Thread
Timer Not Working - by NoahF - 23.06.2013, 09:53
Re: Timer Not Working - by Pangea - 23.06.2013, 09:55
Re: Timer Not Working - by NoahF - 23.06.2013, 09:57
Re: Timer Not Working - by NoahF - 23.06.2013, 10:02
Re: Timer Not Working - by Vince - 23.06.2013, 10:11
Re: Timer Not Working - by NoahF - 23.06.2013, 10:13
Re: Timer Not Working - by NoahF - 23.06.2013, 10:47
Re: Timer Not Working - by Camorra - 23.06.2013, 11:10
AW: Timer Not Working - by Skimmer - 23.06.2013, 11:16
Re: Timer Not Working - by NoahF - 23.06.2013, 11:36

Forum Jump:


Users browsing this thread: 2 Guest(s)