forward Tutorial1(playerid);
forward Tutorial2(playerid); // Topo GM
public Tutorial1(playerid)
{
new Tutorial1[100] =
{
"OIIIIIIIIIIIII"
};
SendClientMessage(playerid, Teste, Tutorial1);
return 1;
}
public Tutorial2(playerid)
{
new Tutorial2[100] =
{
"OIIIIIIII2"
};
SendClientMessage(playerid, Teste, Tutorial22);
return 1;
} // Funзхes para o SetTimer
public OnPlayerSpawn(playerid)
{
SetTimer("Tutorial1", 100, false);
SetTimer("Tutorial2", 3000, false); //Esse tempo estou usando como exemplo no meu teste, sу para saber se funcionou
return 1;
}
// junto com as outras forward
forward tuto(playerid);
forward tuto1(playerid);
forward tuto2(playerid);
forward tuto3(playerid);
// fim da gm
public tuto(playerid)
{
SendClientMessage(playerid, -1, "sou");
SetTimerEx("tuto1", 5000, 0, "e", playerid);
return 1;
}
public tuto1(playerid)
{
SendClientMessage(playerid, -1, "muito");
SetTimerEx("tuto2", 5000, 0, "e", playerid);
return 1;
}
public tuto2(playerid)
{
SendClientMessage(playerid, -1, "lindo");
SetTimerEx("tuto3", 5000, 0, "e", playerid);
return 1;
}
public tuto3(playerid)
{
SendClientMessage(playerid, -1, "oi");
return 1;
}
tuto(playerid);
CMD:teste(playerid)
{
tuto(playerid);
return 1;
}
prefiro usar algo assim
pawn Код:
pawn Код:
pawn Код:
|
new EtapaTuto[ MAX_PLAYERS ];
forward Tutorial(playerid);
public OnPlayerSpawn(playerid)
{
SetTimer("Tutorial", 100, false);
EtapaTuto[ playerid ] = 1;
return 1;
}
public Tutorial(playerid)
{
if(EtapaTuto[ playerid ] == 1)
{
SendClientMessage(playerid, -1, "Tutorial etapa: 1");
EtapaTuto[ playerid ] = 2;
}
else if(EtapaTuto[ playerid ] == 2)
{
SendClientMessage(playerid, -1, "Tutorial etapa: 2");
EtapaTuto[ playerid ] = 3;
}
else if(EtapaTutp[ playerid ] == 3)
{
SendClientMessage(playerid, -1, "Tutorial etapa: 3");
EtapaTuto[ playerid ] = 4;
}
else if(EtapaTuto[ playerid ] == 4)
{
SendClientMessage(playerid, -1, "Tutorial etapa: 4");
EtapaTuto[ playerid ] = 5;
}
else if(EtapaTuto[ playerid ] == 5)
{
SendClientMessage(playerid, -1, "Tutorial etapa: 5");
EtapaTuto[ playerid ] = 0;
}
return 1;
}