Tutorials
#2

Well this the way how I did it.
Create a timer like SetTimer("Tutorial",20000,1);
Or use SetTimerEx if you want.
Create the Callback Tutorial
Код:
new Tut[MAX_PLAYERS];

forward Tutorial();
public Totorial()
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(Tut[i] == 1)
		{
			SendClientMessage(i, COLOR, "Text for the first part of the tutorial");
			Tut[i] = 2;
		}
		if(Tut[i] == 2)
		{
			SendClientMessage(i, COLOR, "Text for the second part of the tutorial");
			Tut[i] = 3;
		}
		if(Tut[i] == 3)
		{
			SendClientMessage(i, COLOR, "End of the tutorial.");
			Tut[i] = 4;
		}
	}
}
I hope you can create a command like /starttutorial. So the Tut[playerid] go to 1
Then the tutorial will start.
Reply


Messages In This Thread
Tutorials - by Tony1337 - 15.04.2010, 20:17
Re: Tutorials - by RSC_Quicker - 15.04.2010, 20:51
Re: Tutorials - by Tony1337 - 15.04.2010, 23:20
Re: Tutorials - by Thrarod - 15.04.2010, 23:38
Re: Tutorials - by RSC_Quicker - 16.04.2010, 13:47

Forum Jump:


Users browsing this thread: 2 Guest(s)