how to make RP tutorial
#6

On-topic: Make a timer like this under OnGameModeInit:

pawn Код:
SetTimer("TutorialCheck", 1000, true);
Then the callback..

pawn Код:
public TutorialCheck()
{
    new i = 0;
    while (i < MAX_PLAYERS)
    {
        if(TutTime[i] >= 1 || !TutFinished[i])
        {
            TutTime[i]++;
            if (TutTime[i]==2)
            {
                // blablabla
            }
            else if (TutTime[i]==7)
            {
                // blablabla
            }
            else if (TutTime[i]==12)
            {
                // blablabla
            }
        }
        i++;
    }
    return 1;
}
And the variables on top.

pawn Код:
new TutFinished[MAX_PLAYERS];
new TutTime[MAX_PLAYERS];
I recommend you save the 'TutFinished' variable to a file.

And you're done!
Reply


Messages In This Thread
how to make RP tutorial - by YungGee - 17.02.2011, 20:28
Re: how to make RP tutorial - by marinov - 17.02.2011, 21:37
Re: how to make RP tutorial - by YungGee - 17.02.2011, 21:41
Re: how to make RP tutorial - by Serbish - 17.02.2011, 22:00
Re: how to make RP tutorial - by YungGee - 17.02.2011, 22:07
Re: how to make RP tutorial - by California - 17.02.2011, 22:07
Re: how to make RP tutorial - by YungGee - 17.02.2011, 22:19
Re: how to make RP tutorial - by Serbish - 17.02.2011, 23:37
Re: how to make RP tutorial - by Zack9764 - 18.02.2011, 02:08

Forum Jump:


Users browsing this thread: 1 Guest(s)