hi
wo drann kann es liegen das ein checkpoint nicht weg geht ?
habe mir aus dem suchtis script die farmer fark genommen mit allem was dazu gehört
nur mein prob ist sobald ich /harvest mache und zum ersten checkpoint fahre der nicht verschwindet und somit sich der 2 nicht öffnet
mfg
[edit]
pwn code rein gemacht
bei forward
forward DefineFarmerCoords();
forward UnlockFarmers();
//=========Farmer=============
new FarmersLocked;
new farmer_check_idx;
new Float:farmer_check_X[MAX_CHECKPOINTS];
new Float:farmer_check_Y[MAX_CHECKPOINTS];
new Float:farmer_check_Z[MAX_CHECKPOINTS];
bei
OnplayerenterRaceCheckpoint
if(PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)
{
if(PlayerInfo[playerid][checkpoint] == farmer_check_idx)
{
SendClientMessage(playerid, COLOR_GREEN, "* Du erntest 500 Gramm Armordrugs *");
PlayerInfo[playerid][armordrugs] += 500;
DisablePlayerRaceCheckpoint(playerid);
if(PlayerInfo[playerid][armordrugs] > 100000)
{
PlayerInfo[playerid][armordrugs] = 100000;
}
PlayerInfo[playerid][checkpoint] = 0;
FarmersLocked = 1;
SetTimer("UnlockFarmers", 300000, 0);
return 1;
}
else
{
PlayerInfo[playerid][checkpoint] += 1;
new c = PlayerInfo[playerid][checkpoint];
if(c == farmer_check_idx)
SetPlayerRaceCheckpoint(playerid, 0, farmer_check_X[code=c], farmer_check_Y[code=c], farmer_check_Z[code=c], farmer_check_X[c+1], farmer_check_Y[c+1], farmer_check_Z[c+1], 10);
return 1;
}
}
return 1;
}
public DefineFarmerCoords()
{
new c = 1;
farmer_check_X[code=c] = -126.41;
farmer_check_Y[code=c] = 61.15;
farmer_check_Z[code=c] = 4.10;
c = 2;
farmer_check_X[code=c] = -132.65;
farmer_check_Y[code=c] = 43.88;
farmer_check_Z[code=c] = 4.09;
c = 3;
farmer_check_X[code=c] = -145.25;
farmer_check_Y[code=c] = 13.56;
farmer_check_Z[code=c] = 4.09;
c = 4;
farmer_check_X[code=c] = -161.83;
farmer_check_Y[code=c] = -23.60;
farmer_check_Z[code=c] = 4.09;
c = 5;
farmer_check_X[code=c] = -178.41;
farmer_check_Y[code=c] = -63.01;
farmer_check_Z[code=c] = 4.09;
c = 6;
farmer_check_X[code=c] = -195.52;
farmer_check_Y[code=c] = -78.64;
farmer_check_Z[code=c] = 4.09;
c = 7;
farmer_check_X[code=c] = -197.96;
farmer_check_Y[code=c] = -61.05;
farmer_check_Z[code=c] = 4.09;
c = 8;
farmer_check_X[code=c] = -184.93;
farmer_check_Y[code=c] = -34.92;
farmer_check_Z[code=c] = 4.09;
c = 9;
farmer_check_X[code=c] = -167.38;
farmer_check_Y[code=c] = 8.30;
farmer_check_Z[code=c] = 4.09;
c = 10;
farmer_check_X[code=c] = -156.46;
farmer_check_Y[code=c] = 36.10;
farmer_check_Z[code=c] = 4.09;
c = 11;
farmer_check_X[code=c] = -149.90;
farmer_check_Y[code=c] = 52.78;
farmer_check_Z[code=c] = 4.09;
c = 12;
farmer_check_X[code=c] = -157.86;
farmer_check_Y[code=c] = 72.83;
farmer_check_Z[code=c] = 4.09;
c = 13;
farmer_check_X[code=c] = -163.70;
farmer_check_Y[code=c] = 45.39;
farmer_check_Z[code=c] = 4.09;
c = 14;
farmer_check_X[code=c] = -173.79;
farmer_check_Y[code=c] = 17.56;
farmer_check_Z[code=c] = 4.09;
c = 15;
farmer_check_X[code=c] = -179.84;
farmer_check_Y[code=c] = 0.89;
farmer_check_Z[code=c] = 4.09;
c = 16;
farmer_check_X[code=c] = -188.45;
farmer_check_Y[code=c] = -22.84;
farmer_check_Z[code=c] = 4.09;
c = 17;
farmer_check_X[code=c] = -203.95;
farmer_check_Y[code=c] = -65.56;
farmer_check_Z[code=c] = 4.09;
c = 18;
farmer_check_X[code=c] = -225.65;
farmer_check_Y[code=c] = -78.96;
farmer_check_Z[code=c] = 4.09;
c = 19;
farmer_check_X[code=c] = -213.92;
farmer_check_Y[code=c] = -47.35;
farmer_check_Z[code=c] = 4.09;
c = 20;
farmer_check_X[code=c] = -202.61;
farmer_check_Y[code=c] = -12.51;
farmer_check_Z[code=c] = 4.09;
c = 21;
farmer_check_X[code=c] = -193.39;
farmer_check_Y[code=c] = 15.90;
farmer_check_Z[code=c] = 4.09;
c = 22;
farmer_check_X[code=c] = -178.35;
farmer_check_Y[code=c] = 62.28;
farmer_check_Z[code=c] = 4.09;
c = 23;
farmer_check_X[code=c] = -192.52;
farmer_check_Y[code=c] = 87.18;
farmer_check_Z[code=c] = 4.09;
c = 24;
farmer_check_X[code=c] = -207.50;
farmer_check_Y[code=c] = 52.12;
farmer_check_Z[code=c] = 4.09;
c = 25;
farmer_check_X[code=c] = -214.47;
farmer_check_Y[code=c] = 32.52;
farmer_check_Z[code=c] = 4.09;
c = 26;
farmer_check_X[code=c] = -223.17;
farmer_check_Y[code=c] = 8.04;
farmer_check_Z[code=c] = 4.09;
c = 27;
farmer_check_X[code=c] = -232.37;
farmer_check_Y[code=c] = -17.82;
farmer_check_Z[code=c] = 4.09;
c = 28;
farmer_check_X[code=c] = -247.97;
farmer_check_Y[code=c] = -61.72;
farmer_check_Z[code=c] = 4.09;
c = 29;
farmer_check_X[code=c] = -267.10;
farmer_check_Y[code=c] = -57.79;
farmer_check_Z[code=c] = 4.09;
c = 30;
farmer_check_X[code=c] = -255.24;
farmer_check_Y[code=c] = -33.59;
farmer_check_Z[code=c] = 4.09;
c = 31;
farmer_check_X[code=c] = -248.52;
farmer_check_Y[code=c] = -13.49;
farmer_check_Z[code=c] = 3.80;
c = 32;
farmer_check_X[code=c] = -240.68;
farmer_check_Y[code=c] = 9.78;
farmer_check_Z[code=c] = 3.80;
c = 33;
farmer_check_X[code=c] = -232.59;
farmer_check_Y[code=c] = 34.07;
farmer_check_Z[code=c] = 3.76;
c = 34;
farmer_check_X[code=c] = -224.67;
farmer_check_Y[code=c] = 58.11;
farmer_check_Z[code=c] = 3.76;
c = 35;
farmer_check_X[code=c] = -215.32;
farmer_check_Y[code=c] = 86.69;
farmer_check_Z[code=c] = 3.76;
c = 36;
farmer_check_X[code=c] = -121.32;
farmer_check_Y[code=c] = 72.82;
farmer_check_Z[code=c] = 4.09;
farmer_check_idx = 36;
}
public UnlockFarmers()
{
FarmersLocked = 0;
return 1;
}