17.02.2011, 22:07
(
Последний раз редактировалось JaTochNietDan; 18.02.2011 в 07:50.
Причина: Editing out flaming to keep useful information
)
On-topic: Make a timer like this under OnGameModeInit:
Then the callback..
And the variables on top.
I recommend you save the 'TutFinished' variable to a file.
And you're done!
pawn Код:
SetTimer("TutorialCheck", 1000, true);
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;
}
pawn Код:
new TutFinished[MAX_PLAYERS];
new TutTime[MAX_PLAYERS];
And you're done!