10.02.2012, 02:08
Hello, I have a small problem is the following:
FS on my racing, I did a race, she has 13 points vouchers, but when passing by almost all near the end of the race, a checkpoint buga, there you pass the cars on top of him he does not switch to the next, oh you have to go back to the car, spend about 3 times on him for him to move to the next checkpoint!
Below, if you have something wrong someone help me, just who is giving this problem .. thank you
Checkss
part of the OnPlayerEnterRaceCheckpoint
part of the OnPlayerCommandText
Excuse my English!
FS on my racing, I did a race, she has 13 points vouchers, but when passing by almost all near the end of the race, a checkpoint buga, there you pass the cars on top of him he does not switch to the next, oh you have to go back to the car, spend about 3 times on him for him to move to the next checkpoint!
Below, if you have something wrong someone help me, just who is giving this problem .. thank you
Checkss
pawn Код:
new Float:ChecksVoltaLV[13][3] = {
{2048.1509,876.9043,6.7487},
{2048.3633,1042.9762,10.3777},
{2054.4431,1187.7832,10.3807},
{2066.3076,1342.4521,10.3817},
{2066.7405,1652.5687,10.3817},
{2146.6597,1875.7091,10.3791},
{2137.7563,2138.9746,10.3777},
{2033.5272,2454.5837,10.4934},
{2226.9695,2449.5693,10.5199},
{2137.7168,2149.1606,10.3778},
{2049.8115,1650.3304,10.3778},
{2056.4744,1456.6709,10.3725},
{2068.8479, 868.8264, 6.5674}
};
pawn Код:
else if(CorridaAtual == 6)
{
if(checkcorrida[playerid] == 13)
{
DisablePlayerCheckpoint(playerid);
checkcorrida[playerid] ++;
SetPlayerRaceCheckpoint(playerid, 1, 2068.8479, 868.8264, 6.5674, 2068.8479, 868.8264, 6.5674, 10.0);
}
else if(checkcorrida[playerid] == 14)
{
new Vencedor[256], mensagem[256];
if(Colocado == 0)
{
Vencedor = PlayerName(playerid);
format(mensagem,256,"[RACE] 1єLugar : %s .",Vencedor);
SendClientMessageToAll(VERDE,mensagem);
SendClientMessage(playerid,VERDE,"[RACE] Vocк recebeu $20.000 por ter chegado em 1єLugar!");
GivePlayerMoney(playerid, 20000);
SetPVarInt(playerid, "moneycorrida", GetPVarInt(playerid, "moneycorrida") + 20000);
Colocado ++;
}
else if(Colocado == 1)
{
Vencedor = PlayerName(playerid);
format(mensagem,256,"[RACE] 2єLugar : %s .",Vencedor);
SendClientMessageToAll(VERDE,mensagem);
SendClientMessage(playerid,VERDE,"[RACE] Vocк recebeu $10.000 por ter chegado em 2єLugar!");
GivePlayerMoney(playerid, 10000);
SetPVarInt(playerid, "moneycorrida", GetPVarInt(playerid, "moneycorrida") + 10000);
Colocado ++;
}
else if(Colocado == 2)
{
Vencedor = PlayerName(playerid);
format(mensagem,256,"[RACE] 3єLugar : %s .",Vencedor);
SendClientMessageToAll(VERDE,mensagem);
SendClientMessage(playerid,VERDE,"[RACE] Vocк recebeu $5.000 por ter chegado em 3єLugar!");
GivePlayerMoney(playerid, 5000);
SetPVarInt(playerid, "moneycorrida", GetPVarInt(playerid, "moneycorrida") + 5000);
Colocado ++;
}
Entrou[playerid] = 0;
DisablePlayerRaceCheckpoint(playerid);
checkcorrida[playerid] = 0;
}
else
{
RaceSound(playerid,1139);
DisablePlayerCheckpoint(playerid);
checkcorrida[playerid] ++;
SetPlayerRaceCheckpoint(playerid, 0,
ChecksVoltaLV[checkcorrida[playerid]][0],
ChecksVoltaLV[checkcorrida[playerid]][1],
ChecksVoltaLV[checkcorrida[playerid]][2],
ChecksVoltaLV[checkcorrida[playerid] + 1][0],
ChecksVoltaLV[checkcorrida[playerid] + 1][1],
ChecksVoltaLV[checkcorrida[playerid] + 1][2], 10.0);
}
}
return 1;
}
pawn Код:
else if(CorridaAtual == 6)
{
new Corredor[256], mensagem[265];
Entrou[playerid] = 1;
Corredor = PlayerName(playerid);
format(mensagem,256,"%s entrou na Corrida (/correr).",Corredor);
SendClientMessageToAll(AMARELO,mensagem);
SendClientMessage(playerid,VERDE,"[RACE] Vocк entrou na Corrida, aguarde atй que ela comece!");
TogglePlayerControllable(playerid, 0);
checkcorrida[playerid] = 0;
SetPlayerRaceCheckpoint(playerid, 0,
ChecksVoltaLV[checkcorrida[playerid]][0],
ChecksVoltaLV[checkcorrida[playerid]][1],
ChecksVoltaLV[checkcorrida[playerid]][2],
ChecksVoltaLV[checkcorrida[playerid] + 1][0],
ChecksVoltaLV[checkcorrida[playerid] + 1][1],
ChecksVoltaLV[checkcorrida[playerid] + 1][2], 10.0);
PosStats(playerid);