06.09.2013, 14:20
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;
}