Race position
#10

Wont it look like this?
correct me if i am wrong!
Код:
new const Float:g_arrCheckpoints[][] = {
    {3199.9063, -1603.0369, 11.0098},
    {3199.8782, -1577.8555, 11.2266},
    {3199.8042, -1554.7965, 11.0993},
    {3199.8364, -1544.1656, 11.0098},
    {3200.2439, -1533.0986, 11.0098},
    {3222.5374, -1533.3177, 11.2266},
    {3241.9172, -1533.0231, 11.0098},
    {3242.0122, -1516.8359, 11.6601},
    {3241.9187, -1501.1729, 6.0084},
    {3242.0002, -1486.0942, 6.2266},
    {3241.7668, -1472.2089, 7.3302},
    {3241.9143, -1463.2189, 10.5974},
    {3241.7896, -1452.3059, 14.5464},
    {3241.8970, -1436.9100, 20.2788},
    {3241.7861, -1427.0548, 11.2403},
    {3241.5625, -1407.2910, 11.7712},
    {3217.9495, -1407.5604, 11.0993},
    {3217.0859, -1394.6508, 11.0084},
    {3217.6970, -1382.2604, 11.0084},
    {3241.9387, -1382.0331, 10.9599}
};
new CheckCPID[MAX_PLAYERS][sizeof(g_arrCheckpoints)];

stock GetPlayerRacePosition(playerid)
{
	new TempCp;
	for(new x = 0; x < sizeof(g_arrCheckpoints); x++)
	{
		if(GetPlayerDistanceFromPoint(playerid, g_arrCheckpoints[0][x], g_arrCheckpoints[1][x], g_arrCheckpoints[2][x]) < GetPlayerDistanceFromPoint(playerid, g_arrCheckpoints[0][x], g_arrCheckpoints[1][x], g_arrCheckpoints[2][x]))
		{
			TempCp = CheckCPID[playerid][x];
			break;
		}
    }
	return TempCp;
}
Reply


Messages In This Thread
Race position - by JaKe Elite - 07.12.2016, 12:36
Re: Race position - by Konstantinos - 07.12.2016, 12:46
Re: Race position - by JaKe Elite - 07.12.2016, 13:04
Re: Race position - by Yaa - 07.12.2016, 13:07
Re: Race position - by Konstantinos - 07.12.2016, 13:18
Re: Race position - by JaKe Elite - 07.12.2016, 13:24
Re: Race position - by JaKe Elite - 07.12.2016, 13:38
Re: Race position - by Yaa - 07.12.2016, 13:45
Re: Race position - by Konstantinos - 07.12.2016, 13:45
Re: Race position - by gurmani11 - 07.12.2016, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)