Hi! I am working on a Trucking System and i realized something. The checkpoint don`t have de written size, i mean
if i put the 10.0 range it will still be 3.0 ( standard ). Only if i die it shows the correct size. Anyone knows how can i repair that?
Код:
case CHECKPOINT_TRUCKER_HAINE:
{
if(VehicleInfo[GetPlayerVehicleID(playerid)][vType] != DIALOG_TRUCKER) return 1;
new rand = random(3);
DisablePlayerCheckpoint(playerid);
Streamer_Update(playerid);
switch(rand)
{
case 0: SetPlayerCheckpoint(playerid,2787.8765,-2448.5056,13.6336,2.0);
case 1: SetPlayerCheckpoint(playerid,2788.0286,-2462.7239,13.633,2.0);
case 2: SetPlayerCheckpoint(playerid,2794.6182,-2449.0957,13.6320,2.0);
}
SetPVarInt(playerid, "Checkpoint", CHECKPOINT_TRUCKER_BOX);
}
case CHECKPOINT_TRUCKER_BIJUTERII:
{
if(VehicleInfo[GetPlayerVehicleID(playerid)][vType] != DIALOG_TRUCKER) return 1;
new rand = random(3);
DisablePlayerCheckpoint(playerid);
Streamer_Update(playerid);
switch(rand)
{
case 0:SetPlayerCheckpoint(playerid,2787.8640,-2487.3274,13.6502,2.0);
case 1:SetPlayerCheckpoint(playerid,2787.8752,-2502.3721,13.6502,2.0);
case 2:SetPlayerCheckpoint(playerid,2794.7905,-2486.4399,13.6417,2.0);
}
SetPVarInt(playerid, "Checkpoint", CHECKPOINT_TRUCKER_BOX);
}
case CHECKPOINT_TRUCKER_MANCARE:
{
if(VehicleInfo[GetPlayerVehicleID(playerid)][vType] != DIALOG_TRUCKER) return 1;
new rand = random(2);
DisablePlayerCheckpoint(playerid);
Streamer_Update(playerid);
switch(rand)
{
case 0: SetPlayerCheckpoint(playerid,2794.7871,-2410.7524,13.6320,2.0);
case 1: SetPlayerCheckpoint(playerid,2787.9678,-2425.0940,13.6336,2.0);
}
SetPVarInt(playerid, "Checkpoint", CHECKPOINT_TRUCKER_BOX);
}
case CHECKPOINT_TRUCKER_CHIMICALE:
{
if(VehicleInfo[GetPlayerVehicleID(playerid)][vType] != DIALOG_TRUCKER) return 1;
DisablePlayerCheckpoint(playerid);
Streamer_Update(playerid);
SetPlayerCheckpoint(playerid,2752.1694,-2386.7715,13.7824,0.5);
SetPVarInt(playerid, "Checkpoint", CHECKPOINT_TRUCKER_BOX);
}
case CHECKPOINT_TRUCKER_BOX:
{
if(truckerCar[playerid] == 3001) return 1;
new Float:x;
new Float:y;
new Float:z;
DisablePlayerCheckpoint(playerid);
Streamer_Update(playerid);
GetVehiclePos(truckerCar[playerid], x, y, z);
SetPlayerCheckpoint(playerid, x, y, z, 7.0);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
SetPVarInt(playerid, "Checkpoint", CHECKPOINT_TRUCKER_TRUNK);
SetPlayerAttachedObject( playerid, 5, 1575, 1, -0.064613, 0.520760, 0.000000, 0.000000, 84.217391, 0.000000, 1.000000, 1.000000, 1.000000 );
SendClientMessage(playerid, -1, "[Trucker job]: Pune marfa in portbagaj.");
}
case CHECKPOINT_TRUCKER_TRUNK:
{
RemovePlayerAttachedObject(playerid, 5);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant_Loop", 4.0, 1, 0, 0, 0, 0);
SetTimerEx("ClearAnimationTrucker", 2500, false, "i", playerid);
SetPVarInt(playerid, "Checkpoint", CHECKPOINT_NONE);
}