11.05.2018, 01:39
Estou fazendo um sistema de gasolina bбsico , e me deparo com um problema , as bombas de gasolina "padrгo" explodem com muito fбcil contato.
Bombas que explodem: https://prnt.sc/jgavio
Queria trocar elas , meu amigo me passou isso:
Porйm como eu quero trocar elas por outras , muitas ficam bugadas, tem вngulos diferentes e tals...
Se alguйm saber alguйm que fez isso pra apagar as bombas e colocar outras, agradeзo se puder me ajudar.
Resumidamente pra quem nгo entendeu, quero apagar as bombas que explodem e adicionar outras , mas elas tem variados вngulos e acabam bugando.
Bombas que explodem: https://prnt.sc/jgavio
Queria trocar elas , meu amigo me passou isso:
PHP Code:
static
Float:GasPump[78][3] =
{-85.2422, -1165.0312, 2.6328},
{-90.1406, -1176.6250, 2.6328},
{-92.1016, -1161.7891, 2.9609},
{-97.0703, -1173.7500, 3.0312},
{1941.6562, -1767.2891, 14.1406},
{1941.6562, -1771.3438, 14.1406},
{1941.6562, -1774.3125, 14.1406},
{1941.6562, -1778.4531, 14.1406},
{-1327.0312, 2685.5938, 49.4531},
{-1327.7969, 2680.1250, 49.4531},
{-1328.5859, 2674.7109, 49.4531},
{-1329.2031, 2669.2812, 49.4531},
{-1464.9375, 1860.5625, 31.8203},
{-1465.4766, 1868.2734, 31.8203},
{-1477.6562, 1859.7344, 31.8203},
{-1477.8516, 1867.3125, 31.8203},
{-1600.6719, -2707.8047, 47.9297},
{-1603.9922, -2712.2031, 47.9297},
{-1607.3047, -2716.6016, 47.9297},
{-1610.6172, -2721.0000, 47.9297},
{-1665.5234, 416.9141, 6.3828},
{-1669.9062, 412.5312, 6.3828},
{-1672.1328, 423.5000, 6.3828},
{-1675.2188, 407.1953, 6.3828},
{-1676.5156, 419.1172, 6.3828},
{-1679.3594, 403.0547, 6.3828},
{-1681.8281, 413.7812, 6.3828},
{-1685.9688, 409.6406, 6.3828},
{-2241.7188, -2562.2891, 31.0625},
{-2246.7031, -2559.7109, 31.0625},
{-2410.8047, 970.8516, 44.4844},
{-2410.8047, 976.1875, 44.4844},
{-2410.8047, 981.5234, 44.4844},
{1378.9609, 461.0391, 19.3281},
{1380.6328, 460.2734, 19.3281},
{1383.3984, 459.0703, 19.3281},
{1385.0781, 458.2969, 19.3281},
{603.4844, 1707.2344, 6.1797},
{606.8984, 1702.2188, 6.1797},
{610.2500, 1697.2656, 6.1797},
{613.7188, 1692.2656, 6.1797},
{617.1250, 1687.4531, 6.1797},
{620.5312, 1682.4609, 6.1797},
{624.0469, 1677.6016, 6.1797},
{655.6641, -558.9297, 15.3594},
{655.6641, -560.5469, 15.3594},
{655.6641, -569.6016, 15.3594},
{655.6641, -571.2109, 15.3594},
{1590.3516, 2193.7109, 11.3125},
{1590.3516, 2204.5000, 11.3125},
{1596.1328, 2193.7109, 11.3125},
{1596.1328, 2204.5000, 11.3125},
{1602.0000, 2193.7109, 11.3125},
{1602.0000, 2204.5000, 11.3125},
{2109.0469, 914.7188, 11.2578},
{2109.0469, 925.5078, 11.2578},
{2114.9062, 914.7188, 11.2578},
{2114.9062, 925.5078, 11.2578},
{2120.8203, 914.7188, 11.2578},
{2120.8203, 925.5078, 11.2578},
{2141.6719, 2742.5234, 11.2734},
{2141.6719, 2753.3203, 11.2734},
{2147.5312, 2742.5234, 11.2734},
{2147.5312, 2753.3203, 11.2734},
{2153.3125, 2742.5234, 11.2734},
{2153.3125, 2753.3203, 11.2734},
{2196.8984, 2470.2500, 11.3125},
{2196.8984, 2474.6875, 11.3125},
{2196.8984, 2480.3281, 11.3125},
{2207.6953, 2470.2500, 11.3125},
{2207.6953, 2474.6875, 11.3125},
{2207.6953, 2480.3281, 11.3125},
{2634.6406, 1100.9453, 11.2500},
{2634.6406, 1111.7500, 11.2500},
{2639.8750, 1100.9609, 11.2500},
{2639.8750, 1111.7500, 11.2500},
{2645.2500, 1100.9609, 11.2500},
{2645.2500, 1111.7500, 11.2500}
};
Se alguйm saber alguйm que fez isso pra apagar as bombas e colocar outras, agradeзo se puder me ajudar.
PHP Code:
// ADICIONAR BOMBAS, O GRANDE PROBLEMA
for(new i; i < sizeof(GasPump); i++)
{
CreateDynamicObject(3465, GasPump[i][0], GasPump[i][1], GasPump[i][2], 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
}
PHP Code:
// REMOVER AS BOMBA FUNCIONA
for(new i; i < sizeof(GasPump); i++)
{
RemoveBuildingForPlayer(playerid, 1676,GasPump[i][0], GasPump[i][1], GasPump[i][2], 0.250);
}