[HELP]Timer for all ?
#1

Hi , I have a variable who checks if the player spawns without doing tutorial then I start it:
pawn Код:
TuerTempsTutoriel = SetTimer("Tutoriel", 1000, true);
the Timer function:
pawn Код:
forward Tutoriel();
public Tutoriel()
{
    for(new i; i<MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        TempsTutoriel[i] ++;
        if(TempsTutoriel[i] == 8) // Tuto 1
        {
            //blabla
        }
        else if(TempsTutoriel[i] == 65)
        {
            //blabla
         }
//.....other things
    return 1;
}
The problem is I think that when a player spawns without doing tutorial all players do it ,(like this tutorial timer is started for everyone , So I must change it to playerid only?)
Reply


Messages In This Thread
[HELP]Timer for all ? - by Saw® - 21.01.2013, 09:53
Re: [HELP]Timer for all ? - by Infinity90 - 21.01.2013, 10:16
Re: [HELP]Timer for all ? - by Saw® - 21.01.2013, 10:19
Re: [HELP]Timer for all ? - by Infinity90 - 21.01.2013, 10:26
Re: [HELP]Timer for all ? - by DaRk_RaiN - 21.01.2013, 10:29
Re: [HELP]Timer for all ? - by Saw® - 21.01.2013, 10:29
Re: [HELP]Timer for all ? - by Infinity90 - 21.01.2013, 10:30
Re: [HELP]Timer for all ? - by Saw® - 21.01.2013, 10:37
Re: [HELP]Timer for all ? - by DaRk_RaiN - 21.01.2013, 10:40
Re: [HELP]Timer for all ? - by Saw® - 21.01.2013, 10:49

Forum Jump:


Users browsing this thread: 2 Guest(s)