[Ajuda] Posto de Gasolina nгo abastece!
#1

Eu coloquei um posto novo no meu gm,ai eu coloquei o negoзo pra abastecer ele e nгo abastece,achei que era so nakele posto,mais sao todos os postos q n pega,oq devo fazer


Quote:

GameModeInit_PickupsIcons()
{
// Add a pickup so the player can get a trucker/busdriver license and position a 3DTextLabel above it
Pickup_License = CreatePickup(1274, 2, -2033.0, -100.0, 35.2, 0);

Create3DTextLabel(TXT_PickupText, 0x008080FF, -2033.0, -100.0, 36.0, 30.0, 0);

// Add all refuel-pickups to the world (including their icon)
AddRefuelPickup(-1471.5, 1863.75, 32.7);
AddRefuelPickup(-1326.5, 2677.5, 50.1);
AddRefuelPickup(611.5, 1694.5, 7.0);
AddRefuelPickup(-2249.25, -2559.0, 32.0);
AddRefuelPickup(-1606.5, -2714.0, 48.6);
AddRefuelPickup(-93.5, -1175.0, 2.3);
AddRefuelPickup(1377.5, 457.0, 19.9);
AddRefuelPickup(651.5, -565.5, 16.4);
AddRefuelPickup(-1675.75, 412.75, 7.2);
AddRefuelPickup(-2405.50, 976.25, 45.3);
AddRefuelPickup(-2023.25, 156.75, 28.9);
AddRefuelPickup(-1131.75, -204.25, 14.2);
AddRefuelPickup(66.50, 1220.50, 18.9);
AddRefuelPickup(350.50, 2537.50, 16.;
AddRefuelPickup(2147.00, 2747.75, 10.9);
AddRefuelPickup(2639.75, 1106.00, 10.9);
AddRefuelPickup(2115.00, 920.00, 10.9);
AddRefuelPickup(2202.00, 2475.00, 10.9);
AddRefuelPickup(1596.50, 2199.75, 10.9);
AddRefuelPickup(1584.25, 1448.25, 10.9);
AddRefuelPickup(1004.25, -940.50, 42.2);
AddRefuelPickup(1935.00, -1772.75, 13.4);
AddRefuelPickup(-497.17,-521.78,25.51);

// Add all pickups for the cardealers (including their icon)
AddCarDealerPickup(-1972.5, 288.5, 35.2); // Wang cars in Doherty (San Fierro)

// Add some icons to the map (modding garages), they will only appear when the player discovers them
CreateDynamicMapIcon(1039, -1032, 32, 27, 0, 0, 0, -1, 150.0); // Transfender, Los Santos
CreateDynamicMapIcon(-1936, 235, 34, 27, 0, 0, 0, -1, 150.0); // Transfender, San Fierro
CreateDynamicMapIcon(2385, 1034, 11, 27, 0, 0, 0, -1, 150.0); // Transfender, Las Venturas
CreateDynamicMapIcon(2646, -2025, 14, 27, 0, 0, 0, -1, 150.0); // Loco Low Co, Los Santos
CreateDynamicMapIcon(-2712, 218, 4, 27, 0, 0, 0, -1, 150.0); // Wheel Arch Angels, San Fierro
}

Quote:

AddRefuelPickup(Float, Float:y, Float:z)
{
// Add the pickup-id to the ARefuelPickups array
for (new i; i < sizeof(ARefuelPickups); i++)
{
// If an empty array-index is found
if (ARefuelPickups[i][PickupID] == 0)
{
// Store the pickup-id in this empty slot
ARefuelPickups[i][PickupID] = CreatePickup(1244, 1, x, y, z, 0); // Type 1, cannot be pickup up, exists all the time
ARefuelPickups[i][pux] = x;
ARefuelPickups[i][puy] = y;
ARefuelPickups[i][puz] = z;

// Add a 3DText message above the refuel-pickup
Create3DTextLabel(TXT_PickupRefuel, 0x008080FF, x, y, z + 0.8, 30.0, 0);

// Add an icon to the map for this refuel-spot
CreateDynamicMapIcon(x, y, z, 56, 0, 0, 0, -1, 300.0);

// Stop browsing through the array
break;
}
}
}

Reply


Messages In This Thread
Posto de Gasolina nгo abastece! - by CesarLuisCM - 01.02.2015, 17:52
Re: Posto de Gasolina nгo abastece! - by CesarLuisCM - 01.02.2015, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)