15.04.2010, 20:51
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
I hope you can create a command like /starttutorial. So the Tut[playerid] go to 1
Then the tutorial will start.
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; } } }
Then the tutorial will start.