hallo ich habe ein job dhl jezt soll der user wenn der im 1 Checkpoint ist das der zu sein Kofferraum laufen soll dan ein packte bekommt und zum haus bringen muss wie mache ich das ich habe es momentan so
stock const Float:checkDHL[][3] = {
{2065.7559,-1703.4139,14.1484},//1
{2068.2170,-1731.7712,13.8762},//2
{2103.4197,-1806.3817,13.5547},//3
{2176.1450,-1814.4629,13.5469},//4
{2162.9980,-1814.4858,13.5469},//5
{2151.8184,-1808.2286,13.5469},//6
{2151.5332,-1789.5991,13.5100},//7
{2147.1189,-1808.0038,16.1406},//8
{2151.6099,-1819.2518,16.1406},//9
{2164.7219,-1819.4974,16.1406},//10
{2192.2378,-1814.3676,13.5469},//11
{2231.5369,-1785.5688,13.5609},//12
{2274.3704,-1785.7787,13.5469},//13
{2345.5815,-1785.6888,13.5469},//14
{2402.3303,-1715.5844,14.1328},//15
{2385.6711,-1712.4873,14.2422},//16
{2326.8892,-1717.0460,13.9074},//17
{2368.1250,-1674.8383,14.1682},//18
{2393.2739,-1646.4098,13.9051},//19
{2408.9231,-1674.1664,13.6051},//20
{2459.8181,-1690.2717,13.5394},//21
{2513.6563,-1691.0569,13.7842},//22
{2524.6282,-1658.5358,15.8240},//23
{2498.5210,-1642.4344,13.7826},//24
{2469.7729,-1647.0834,13.5182},//25
{2389.8125,-1547.9135,24.1641},//26
{2404.1208,-1548.4551,24.1641},//27
{2418.5986,-1548.3904,24.1641},//28
{2531.0210,-1227.7378,43.6563},//29
{2421.2717,-1222.0807,25.3793},//30
{2352.0618,-1168.3525,27.9209},//31
{1439.1721,-926.0726,39.6477},//32
{1280.9027,-875.1431,46.8438},//33
{1287.2605,-867.7988,46.8361},//34
{1280.7419,-867.9791,42.9445},//35
{1287.4330,-873.5793,43.0766},//36
{1285.5757,-903.7887,46.6328},//37
{1290.0724,-897.5581,46.6251},//38
{1242.0942,-878.0595,46.6406},//39
{1248.7864,-871.0685,46.6329},//40
{1252.1527,-900.9449,42.8828},//41
{1585.7701,-1413.7760,13.3226}//42
};
switch(DHL[playerid])
{
case 1..42: {
new str[64],id=DHL[playerid]-1;
format(str,64,"Du hast den Checkpoint Nr. %d erreicht.",DHL[playerid]);
SendClientMessage(playerid,GRUN,str);
SetPlayerCheckpoint(playerid,checkDHL[id][0],checkDHL[id][1],checkDHL[id][2], 2.0);
DHL[playerid]++;
}
case 43:
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,GRUN, "Du bekomst 1600$ -7% Steuern.");
DestroyVehicle(GetPlayerVehicleID(playerid));
GivePlayerMoney(playerid,1000);
}
}