19.02.2010, 19:44
Ok, so i have these checkpoints, When i enter the checkpoint after my first load it just disapares and dosen't go to the next one. I can't figure it out can someone help me out?
On the second checkpoint is where it disapares when i enter it, The first one works fine then it shows the second one and i enter it and nothing esle happens
pawn Код:
if(IsPickingUp[playerid] > 0)//Trucker Job
{
if(IsPickingUp[playerid] == 1)
{
IsPickingUp[playerid] = 0;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Now Pickup the trailer and go to the next checkpoint");
TrailerOne = CreateVehicle(435,-520.6367,-499.6995,25.3137,0.7208,0,0,60000);
SetPlayerCheckpoint(playerid, 1692.3230,-1921.4425,14.5012,8.0);
IsHauling[playerid] = 1;
}
}
if(IsHauling[playerid] > 0)
{
if(IsHauling[playerid] == 1)
{
new tid = GetPlayerVehicleID(playerid);
if (IsTrailerAttachedToVehicle(tid))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You Have Droped Off your First Load, Go to the Next one");
IsHauling[playerid] = 2;
SetPlayerCheckpoint(playerid,2200.4985,-1976.4784,14.5273, 8.0);
}
else if(IsHauling[playerid] == 2)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Contiune to the next Checkpoint");
SetPlayerCheckpoint(playerid, 1004.0070, -939.3102, 42.1797, 8.0);
IsHauling[playerid] = 3;
}
else if(IsHauling[playerid] == 3)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Contiune to the next Checkpoint");
SetPlayerCheckpoint(playerid,2599.1873,-2228.0984,14.3348, 8.0);
IsHauling[playerid] = 4;
}
else if(IsHauling[playerid] == 4)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Contiune to the next Checkpoint");
SetPlayerCheckpoint(playerid,1619.1797,1622.4902,11.7940, 8.0);
IsHauling[playerid] = 5;
}
else if(IsHauling[playerid] == 5)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Contiune to the next Checkpoint");
SetPlayerCheckpoint(playerid,1393.5294,1101.3350,11.7973, 8.0);
IsHauling[playerid] = 6;
}
else if(IsHauling[playerid] == 6)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Contiune to the next Checkpoint");
SetPlayerCheckpoint(playerid,980.7269,2131.6655,11.7729, 8.0);
IsHauling[playerid] = 7;
}
else if(IsHauling[playerid] == 7)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Contiune to the next Checkpoint");
SetPlayerCheckpoint(playerid,1036.7595,2126.9785,11.7899, 8.0);
IsHauling[playerid] = 8;
}
else if(IsHauling[playerid] == 9)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Contiune to the next Checkpoint");
SetPlayerCheckpoint(playerid,1092.1859,1868.2339,11.7945, 8.0);
IsHauling[playerid] = 10;
}
else if(IsHauling[playerid] == 10)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Contiune to the next Checkpoint");
SetPlayerCheckpoint(playerid,1693.8087,721.8428,10.5231, 8.0);
IsHauling[playerid] = 11;
}
else if(IsHauling[playerid] == 11)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Contiune to the next Checkpoint");
SetPlayerCheckpoint(playerid,2827.2375,915.2798,11.7253, 8.0);
IsHauling[playerid] = 12;
}
else if(IsHauling[playerid] == 12)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Contiune to the next Checkpoint");
SetPlayerCheckpoint(playerid,2315.4253,2793.2842,11.7926, 8.0);
IsHauling[playerid] = 13;
}
else if(IsHauling[playerid] == 13)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Contiune to the next Checkpoint");
SetPlayerCheckpoint(playerid,1711.4408,2335.6279,11.8102, 8.0);
IsHauling[playerid] = 14;
}
else if(IsHauling[playerid] == 14)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Contiune to the next Checkpoint");
SetPlayerCheckpoint(playerid,1689.8271,977.4867,10.9666, 8.0);
IsHauling[playerid] = 15;
}
else if(IsHauling[playerid] == 15)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Contiune to the next Checkpoint");
SetPlayerCheckpoint(playerid,262.6723,1417.0981,10.4712, 8.0);
IsHauling[playerid] = 16;
}
else if(IsHauling[playerid] == 16)
{
//TruckTime[playerid] += 1;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have Finshed Your Route, You will recive Payment on Payday");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Go Pickup Another Trailer and start another Route");
// SetPlayerCheckpoint(playerid, -219.5716,-1473.8904,8.2506, 8.0);
DestroyVehicle(TrailerOne);
IsHauling[playerid] = 0;
IsPickingUp[playerid] = 1;
}
}
}