12.01.2015, 17:26
Bom pessoal estou com um problema no meu teste de habilitaзгo, O ъltimo checkPoint nгo aparece.
olhem
Bom o ъltimo checkpoint й o 21, ele serve para poder habilitar o jogador a andar com o veiculo.
olhem
Bom o ъltimo checkpoint й o 21, ele serve para poder habilitar o jogador a andar com o veiculo.
pawn Код:
Float:MotoTeste[21][3] =
{
{-1194.6201, 1834.3516, 41.7072}, // race 1
{-1183.2347, 1804.4128, 40.6482}, // race 2
{-1456.1499, 1850.3590, 33.2142}, // race 3
{-1738.2789, 1827.9923, 23.2913}, // race 4
{-1816.9719, 2134.7849, 7.6998}, // race 5
{-1617.6835, 2384.9641, 51.0172}, // race 6
{-1530.3864, 2362.1067, 46.3298}, // race 7
{-1522.9340, 2162.1206, 49.9073}, // race 8
{-1475.3552, 2111.2744, 45.6838}, // race 9
{-1360.6412, 2175.7813, 48.9361}, // race 10
{-1323.3640, 1977.1005, 50.5539}, // race 11
{-1234.7269, 1889.3953, 41.7600}, // race 12
{-1183.0734, 1805.2289, 40.6253}, // race 13
{-910.9447, 1694.8588, 27.2842}, // race 14
{-850.3835, 1615.1832, 26.9407}, // race 15
{-799.2859, 1535.8745, 26.9609}, // race 16
{-839.9958, 1495.0887, 18.5569}, // race 17
{-897.6324, 1683.4808, 27.2487}, // race 18
{-1161.8694, 1791.9999, 40.1312}, // race 19
{-1213.4529, 1817.0574, 41.7188}, // race 20
{-1219.6810, 1807.7313, 41.4978}, // race 21
},
else if(VerificarEtapa[playerid] == 21 && Velocidade(playerid, 1) < 80 && lataria >= 980.0)
{
SendClientMessage(playerid, 0x98FB98FF, "Vocк passou no teste de Habilitaзгo de moto, Vocк jб pode pilotar!");
SendClientMessage(playerid, -1, "Para ver suas licenзas, digite /minhaslicencas");
DadosJogador[playerid][LIC_MOTOS_JOGADOR] = 1;
PlayerPlaySound(playerid,1057, X, Y, Z);
Teste_Moto[playerid] = 0;
VerificarEtapa[playerid] = 0;
Pontos_Velocidade[playerid] = 0;
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 3);
DisablePlayerRaceCheckpoint(playerid);
DisablePlayerCheckpoint(playerid);
SetVehicleToRespawn(Veiculo);
if(Licencas_LS[playerid] == 1)
{
SetPlayerPos(playerid, -2023.8905, -114.4800, 1035.1719);
SetPlayerFacingAngle(playerid, 93.8901);
Licencas_LS[playerid] = 0;
}
}
if(IsPlayerInVehicle(playerid, Veiculo) || Velocidade(playerid, 1) >= 80 || Velocidade(playerid, 1) <= 80)
{
DisablePlayerRaceCheckpoint(playerid);
if(VerificarEtapa[playerid] == 21)
{
SetPlayerRaceCheckpoint(playerid, 1, MotoTeste[VerificarEtapa[playerid]+1][0],MotoTeste[VerificarEtapa[playerid]+1][1],MotoTeste[VerificarEtapa[playerid]+1][2],MotoTeste[VerificarEtapa[playerid]+2][0],MotoTeste[VerificarEtapa[playerid]+2][1],MotoTeste[VerificarEtapa[playerid]+2][1],4.0);
}
else
{
SetPlayerRaceCheckpoint(playerid, 0, MotoTeste[VerificarEtapa[playerid]+1][0],MotoTeste[VerificarEtapa[playerid]+1][1],MotoTeste[VerificarEtapa[playerid]+1][2],MotoTeste[VerificarEtapa[playerid]+2][0],MotoTeste[VerificarEtapa[playerid]+2][1],MotoTeste[VerificarEtapa[playerid]+2][1],2.0);
}
VerificarEtapa[playerid] += 1;
PlayerPlaySound(playerid,1058,X,Y,Z);
}