Hi,
ich schreibe im moment meine Fahrschule
und möchte das man CheckPoints abfahren muss.
Jedoch wenn ich auf den CheckPoint drauf Komme passiert nichts.
Hier der Code;
public IO8(playerid)
{
SetPlayerCheckpoint(playerid,FahrschuleCPS[AktuellerCP[playerid]][0],FahrschuleCPS[AktuellerCP[playerid]][1],FahrschuleCPS[AktuellerCP[playerid]][2], 8.0);
}
new Float:FahrschuleCPS[FahrschuleCheckpoints][3]={
{1120.0819,-1742.9684,13.2734},
{1218.5082,-1714.5054,13.2578},
{1314.9904,-1598.2866,13.2578},
{1359.2489,-1358.1885,13.2577},
{1359.1753,-1135.3665,23.5289},
{1495.7686,-960.0814,36.0208},
{1608.9883,-973.6443,38.0834},
{1809.5532,-1008.1915,36.3113},
{1993.0304,-1029.8339,34.8224},
{2139.0764,-1112.8147,25.1273},
{2038.4762,-1072.8915,24.4940},
{1866.4368,-1116.7670,23.5649},
{1845.8773,-1274.0615,13.2661},
{1846.8126,-1441.1718,13.2755},
{1633.8513,-1439.0822,13.2578},
{1422.5818,-1412.6786,13.2578},
{1296.3918,-1608.0691,13.2578},
{1295.7988,-1753.2590,13.2578},
{1183.6382,-1849.9825,13.2770},
{1182.1180,-1751.1207,13.2734},
{1119.2648,-1738.4752,13.3697},
{1080.3447,-1740.0865,13.3734}
};
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerCheckpoint(playerid,FahrschuleCPS[AktuellerCP[playerid]][0],FahrschuleCPS[AktuellerCP[playerid]][1],FahrschuleCPS[AktuellerCP[playerid]][2], 8.0);
}
Was muss ich tun?
Grüße