24.08.2013, 09:02
pawn Код:
#define TIMER_TUTORIAL (12*1000)
new PasosTutorial[MAX_PLAYERS];
new MatarTutorial[MAX_PLAYERS];
forward CargarTutorial(playerid);
public CargarTutorial(playerid) {
switch(PasosTutorial[playerid]) {
case 0: { //paso 1 Inicio
PasosTutorial[playerid]++;
}
case 1: { //paso 2
PasosTutorial[playerid]++;
}
case 2: { //paso 3
PasosTutorial[playerid]++;
}
case 3: { //paso 4
PasosTutorial[playerid]++;
}
case 4: { //paso 5
PasosTutorial[playerid]++;
}
case 5: { //paso 6 Final
PasosTutorial[playerid]=0;
KillTimer(MatarTutorial[playerid]);
}
}
}
KillTimer(MatarTutorial[playerid]);
MatarTutorial[playerid]=SetTimerEx("CargarTutorial", TIMER_TUTORIAL, true, "d", playerid);