27.07.2015, 20:38
Sin palabras ! se me van a reir con esto pero, al entrar a un checkpointrace se me setea las cordenadas del siguiente a 0,0,0
PHP код:
new Float:MaratonCP[10][3] = {
{-690.4501, -834.8427, 101.8755},
{-645.7204, -765.9174, 70.9295},
{-607.4532, -717.4679, 55.8301},
{-554.5042, -716.1923, 27.5240},
{-320.0933, -712.6195, 53.3668},
{-296.5722, -708.7374, -0.3947},
{-252.0401, -682.5684, -0.3947},
{-115.9776, -886.7798, -0.3947},
{4.6160, -912.5621, -0.3947},
{99.5679, -911.5334, 0.1937}
};
//Esto en EnterCheckPointRace
MCPProgress[playerid]++; // <- esto esta seteado a 0 en onplayerconnect y disconnect
if(MCPProgress[playerid] == 9) SetPlayerRaceCheckpoint(playerid, 1, MaratonCP[MCPProgress[playerid]][0], MaratonCP[MCPProgress[playerid]][1], MaratonCP[MCPProgress[playerid]][2], MaratonCP[MCPProgress[playerid]+1][0], MaratonCP[MCPProgress[playerid]+1][1], MaratonCP[MCPProgress[playerid]+1][2], CHECKCP_SIZE);
else SetPlayerRaceCheckpoint(playerid, 0, MaratonCP[MCPProgress[playerid]][0], MaratonCP[MCPProgress[playerid]][1], MaratonCP[MCPProgress[playerid]][2], MaratonCP[MCPProgress[playerid]+1][0], MaratonCP[MCPProgress[playerid]+1][1], MaratonCP[MCPProgress[playerid]+1][2], CHECKCP_SIZE);
// esto en la funcion que inicia los checkpoint y destraba el player
SetPlayerRaceCheckpoint(playerid, 0, MaratonCP[MCPProgress[playerid]][0], MaratonCP[MCPProgress[playerid]][1], MaratonCP[MCPProgress[playerid]][2], MaratonCP[MCPProgress[playerid]+1][0], MaratonCP[MCPProgress[playerid]+1][1], MaratonCP[MCPProgress[playerid]+1][2], CHECKCP_SIZE);