InAutoEscola[playerid] = 1;
IniciarAE[playerid] = 1;
hook OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_YES)
{
InAutoEscola[playerid] = 1;
IniciarAE[playerid] = 1;
{
SetPlayerRaceCheckpoint(playerid, 0, AutoPoints[0][0], AutoPoints[0][1], AutoPoints[0][2],AutoPoints[1][0], AutoPoints[1][1], AutoPoints[1][2], 10);
point[playerid] = 1;
SendClientMessage(playerid, amarelo,"| Clara | Parabйns vocк iniciou o teste, boa sorte, lembrasse, caso vocк bata, dependendo do dano, sera reprovado !");
InAutoEscola[playerid] = 0;
IniciarAE[playerid] = 0;
}
}
return 1;
}
InAutoEscola[playerid] = 0; e IniciarAE[playerid] = 0; |
if(IniciarAE[playerid] == 0 && InAutoEscola[playerid] == 1)
{
SetPlayerRaceCheckpoint(playerid, 0, AutoPoints[0][0], AutoPoints[0][1], AutoPoints[0][2],AutoPoints[1][0], AutoPoints[1][1], AutoPoints[1][2], 10);
point[playerid] = 1;
SendClientMessage(playerid, amarelo,"| Clara | Parabйns vocк iniciou o teste, boa sorte, lembrasse, caso vocк bata, dependendo do dano, sera reprovado !");
InAutoEscola[playerid] = 0;
IniciarAE[playerid] = 1; // qnd inicia o AE ele recebe 1 e nгo causa mais esse conflito de Y td hr.
}