29.08.2014, 18:43
Eae galera, estava sem nada pra fazer e fiz esse bar ai pra postar no fуrum ou atй mesmo talvez utiliza-lo e.e
@Obs: As paredes sгo de vidros como pode ver e quebra com tiros... eu utilizei a funзгo OnPlayerWeaponShot pra quando derem tiros no vidro ele aparecer normal como se n tive-se quebrado.
Imagens:
1
http://i.imgur.com/9s9z1ZS.png
2
http://i.imgur.com/YHPYjOn.png
3
http://i.imgur.com/ua4SweM.png
4
http://i.imgur.com/M400nh8.png
O cуdigo ae...
Crйditos a min Living(Living_22)
Se for utilizб-lo em seu gamemode por favor coloque os crйditos... Obrigado.
@Obs: As paredes sгo de vidros como pode ver e quebra com tiros... eu utilizei a funзгo OnPlayerWeaponShot pra quando derem tiros no vidro ele aparecer normal como se n tive-se quebrado.
Imagens:
1
http://i.imgur.com/9s9z1ZS.png
2
http://i.imgur.com/YHPYjOn.png
3
http://i.imgur.com/ua4SweM.png
4
http://i.imgur.com/M400nh8.png
O cуdigo ae...
Код:
new Vidro[4];// No topo // No ongamemodeinit CreateObject(974, 1550.13, -1636.13, 13.53, 0.00, 0.00, 271.32); CreateObject(974, 1549.51, -1619.79, 13.53, 0.00, 0.00, 271.83); CreateObject(978, 1545.08, -1622.90, 13.07, 0.00, 0.00, 179.60); CreateObject(978, 1545.70, -1633.15, 13.07, 0.00, 0.00, 0.62); CreateObject(19379, -2462.19, 787.39, 34.18, 0.00, 90.00, 0.00); CreateObject(19379, -2462.06, 777.90, 34.18, 0.00, 90.00, 0.00); CreateObject(19379, -2472.55, 777.87, 34.18, 0.00, 90.00, 0.00); CreateObject(19379, -2472.61, 787.43, 34.18, 0.00, 90.00, 0.00); CreateObject(19377, -2471.11, 774.05, 35.07, 0.00, 0.00, 269.09); CreateObject(19377, -2456.91, 778.31, 35.07, 0.00, 0.00, 0.00); CreateObject(18090, -2458.28, 778.31, 36.82, 0.00, 0.00, 1.84); CreateObject(19377, -2457.05, 787.80, 35.07, 0.00, 0.00, 0.00); CreateObject(19377, -2461.55, 773.93, 35.07, 0.00, 0.00, 269.09); Vidro[0] = CreateObject(3857, -2472.08, 789.09, 37.44, 0.00, 0.00, 225.73); Vidro[1] = CreateObject(3857, -2475.91, 777.92, 37.44, 0.00, 0.00, 314.47); Vidro[2] = CreateObject(3857, -2475.85, 785.32, 37.44, 0.00, 0.00, 314.47); Vidro[3] = CreateObject(3857, -2460.87, 789.01, 37.44, 0.00, 0.00, 225.73); CreateObject(970, -2458.58, 792.20, 34.78, 0.00, 0.00, 0.00); CreateObject(970, -2462.72, 792.19, 34.78, 0.00, 0.00, 0.00); CreateObject(970, -2470.43, 792.24, 34.78, 0.00, 0.00, 0.00); CreateObject(970, -2476.71, 790.17, 34.78, 0.00, 0.00, 269.86); CreateObject(970, -2474.61, 792.24, 34.78, 0.00, 0.00, 0.00); CreateObject(970, -2476.71, 786.03, 34.78, 0.00, 0.00, 269.86); CreateObject(970, -2476.73, 781.89, 34.78, 0.00, 0.00, 269.86); CreateObject(970, -2476.74, 777.75, 34.78, 0.00, 0.00, 269.86); CreateObject(970, -2476.78, 773.60, 34.78, 0.00, 0.00, 269.86); CreateObject(19435, -2475.77, 773.32, 37.76, 0.00, 0.00, 0.00); CreateObject(19435, -2475.77, 773.32, 35.16, 0.00, 0.00, 0.00); CreateObject(19435, -2477.58, 774.73, 34.26, 0.00, 90.00, 268.66); CreateObject(19435, -2477.49, 778.22, 34.26, 0.00, 90.00, 268.66); CreateObject(19435, -2477.43, 781.70, 34.26, 0.00, 90.00, 268.66); CreateObject(19435, -2477.33, 785.22, 34.26, 0.00, 90.00, 268.66); CreateObject(19435, -2477.24, 788.73, 34.26, 0.00, 90.00, 268.66); CreateObject(19435, -2477.20, 790.48, 34.26, 0.00, 90.00, 268.66); CreateObject(18981, -2463.53, 776.69, 40.02, 0.00, 90.00, 0.00); CreateObject(640, -2476.34, 773.41, 34.74, 0.00, 0.00, 0.18); CreateObject(640, -2476.34, 778.79, 34.74, 0.00, 0.00, 0.18); CreateObject(640, -2476.33, 784.16, 34.74, 0.00, 0.00, 0.18); CreateObject(640, -2476.34, 789.55, 34.74, 0.00, 0.00, 0.18); CreateObject(1238, -2457.89, 798.37, 34.59, 0.00, 0.00, 0.00); CreateObject(1238, -2457.18, 798.32, 34.59, 0.00, 0.00, 0.00); CreateObject(1238, -2458.59, 798.35, 34.59, 0.00, 0.00, 0.00); CreateObject(1238, -2459.30, 798.32, 34.59, 0.00, 0.00, 0.00); CreateObject(1238, -2459.94, 798.35, 34.59, 0.00, 0.00, 0.00); CreateObject(1238, -2460.80, 798.34, 34.59, 0.00, 0.00, 0.00); CreateObject(1238, -2476.30, 798.24, 34.59, 0.00, 0.00, 0.00); CreateObject(1238, -2475.66, 798.23, 34.59, 0.00, 0.00, 0.00); CreateObject(1238, -2475.04, 798.25, 34.59, 0.00, 0.00, 0.00); CreateObject(1238, -2474.36, 798.24, 34.59, 0.00, 0.00, 0.00); CreateObject(1238, -2473.54, 798.27, 34.59, 0.00, 0.00, 0.00); CreateObject(1238, -2472.84, 798.31, 34.59, 0.00, 0.00, 0.00); CreateObject(3439, -2464.74, 792.22, 38.16, 0.00, 0.00, 0.00); CreateObject(3439, -2468.54, 792.21, 38.17, 0.00, 0.00, 0.00); CreateObject(1364, -2472.22, 789.85, 34.96, 0.00, 0.00, 181.55); CreateObject(1364, -2460.72, 789.83, 34.96, 0.00, 0.00, 180.61); CreateObject(19435, -2475.81, 788.17, 38.12, 0.00, 0.00, 0.00); CreateObject(19435, -2475.15, 789.01, 38.16, 0.00, 0.00, 271.01); CreateObject(19435, -2475.81, 788.17, 34.66, 0.00, 0.00, 0.00); CreateObject(19435, -2475.15, 789.01, 34.66, 0.00, 0.00, 271.01); CreateObject(2350, -2459.14, 783.25, 34.66, 0.00, 0.00, 0.00); CreateObject(2350, -2460.73, 774.77, 34.66, 0.00, 0.00, 0.00); CreateObject(2350, -2460.77, 775.81, 34.66, 0.00, 0.00, 0.00); CreateObject(2350, -2460.83, 776.81, 34.66, 0.00, 0.00, 0.00); CreateObject(2350, -2460.78, 777.93, 34.66, 0.00, 0.00, 0.00); CreateObject(2350, -2460.83, 779.05, 34.66, 0.00, 0.00, 0.00); CreateObject(2350, -2460.84, 780.27, 34.66, 0.00, 0.00, 0.00); CreateObject(2350, -2460.80, 781.51, 34.66, 0.00, 0.00, 0.00); CreateObject(2350, -2460.44, 782.65, 34.66, 0.00, 0.00, 0.00); CreateObject(2748, -2474.66, 778.32, 34.87, 0.00, 0.00, 180.28); CreateObject(2747, -2474.66, 779.34, 34.59, 0.00, 0.00, 0.83); CreateObject(2748, -2474.68, 780.48, 34.88, 0.00, 0.00, 0.00); CreateObject(2748, -2474.53, 774.87, 34.87, 0.00, 0.00, 181.08); CreateObject(2747, -2474.62, 776.10, 34.59, 0.00, 0.00, 0.83); CreateObject(2748, -2474.66, 777.16, 34.88, 0.00, 0.00, 0.00); CreateObject(2748, -2474.69, 781.61, 34.87, 0.00, 0.00, 180.28); CreateObject(2747, -2474.68, 782.71, 34.59, 0.00, 0.00, 0.83); CreateObject(2748, -2474.73, 783.68, 34.88, 0.00, 0.00, 0.00); CreateObject(2748, -2474.75, 784.85, 34.87, 0.00, 0.00, 180.28); CreateObject(2747, -2474.77, 785.88, 34.59, 0.00, 0.00, 0.83); CreateObject(2748, -2474.79, 786.86, 34.88, 0.00, 0.00, 0.00); CreateObject(2799, -2469.29, 782.71, 34.77, 0.00, 0.00, 328.65); CreateObject(2799, -2470.57, 785.77, 34.77, 0.00, 0.00, 0.00); CreateObject(2799, -2469.04, 776.58, 34.77, 0.00, 0.00, 349.53); CreateObject(2799, -2467.85, 785.40, 34.77, 0.00, 0.00, 349.53); CreateObject(2799, -2467.79, 780.08, 34.77, 0.00, 0.00, 328.65); CreateObject(2799, -2470.66, 778.70, 34.77, 0.00, 0.00, 0.00); CreateObject(1235, -2475.21, 788.48, 34.77, 0.00, 0.00, 0.00); CreateObject(1484, -2457.11, 778.99, 36.11, -10.00, -331.00, -316.00); CreateObject(1484, -2457.08, 777.33, 36.12, -10.00, -331.00, -316.00); CreateObject(1484, -2457.08, 777.44, 36.66, -10.00, -331.00, -315.70); CreateObject(1484, -2457.07, 778.01, 37.26, -10.00, -331.00, -316.00); CreateObject(1484, -2457.12, 778.01, 36.13, -10.00, -331.00, -316.00); CreateObject(1484, -2457.06, 779.51, 36.67, -10.00, -331.00, -316.00); CreateObject(1484, -2457.07, 778.01, 36.67, -10.00, -331.00, -316.00); CreateObject(1484, -2457.09, 779.13, 37.26, -10.00, -331.00, -316.00); CreateObject(644, -2475.16, 789.81, 34.57, 0.00, 0.00, 0.10); CreateObject(644, -2469.39, 789.87, 34.57, 0.00, 0.00, 0.10); CreateObject(644, -2463.64, 789.82, 34.57, 0.00, 0.00, 0.10); CreateObject(644, -2463.64, 789.82, 34.57, 0.00, 0.00, 0.10); CreateObject(644, -2457.95, 789.83, 34.57, 0.00, 0.00, 0.10); CreateObject(3508, -2457.33, 791.61, 33.45, 0.00, 0.00, 0.00); CreateObject(3508, -2475.72, 791.50, 33.45, 0.00, 0.00, 0.00); CreateObject(355, -2457.04, 786.18, 36.51, 0.00, 0.00, 274.74); CreateObject(1237, -2476.63, 797.36, 34.08, 0.00, 0.00, 0.00); CreateObject(1237, -2476.52, 792.87, 34.08, 0.00, 0.00, 0.00); CreateObject(1237, -2476.51, 793.95, 34.08, 0.00, 0.00, 0.00); CreateObject(1237, -2476.59, 796.17, 34.08, 0.00, 0.00, 0.00); CreateObject(2075, -2467.28, 777.21, 39.10, 0.00, 0.00, 0.32); CreateObject(2075, -2473.04, 776.46, 39.10, 0.00, 0.00, 0.00); CreateObject(2075, -2473.63, 781.19, 39.10, 0.00, 0.00, 0.00); CreateObject(2075, -2474.26, 784.99, 39.10, 0.00, 0.00, 0.32); CreateObject(2075, -2467.26, 784.75, 39.10, 0.00, 0.00, 0.32); CreateObject(3471, -2466.94, 787.93, 41.76, 0.00, 0.00, 89.05); CreateObject(3578, -2480.30, 791.99, 33.44, 0.00, 0.00, 358.44); CreateObject(3578, -2480.58, 777.73, 33.44, 0.00, 0.00, 358.44); CreateObject(3578, -2480.35, 782.38, 33.44, 0.00, 0.00, 358.44); CreateObject(3578, -2480.32, 787.28, 33.44, 0.00, 0.00, 358.44); CreateObject(2281, -2457.50, 786.82, 37.08, 0.00, 0.00, 269.57); CreateObject(2276, -2457.50, 785.67, 38.22, 0.00, 0.00, 269.07); CreateObject(2279, -2457.64, 786.65, 38.22, 0.00, 0.00, 269.07); CreateObject(2282, -2457.49, 785.70, 37.08, 0.00, 0.00, 269.07); CreateObject(1541, -2457.35, 780.17, 36.15, 0.00, 0.00, 92.69); CreateObject(1546, -2457.12, 778.78, 36.57, 0.00, 0.00, 0.00); CreateObject(1543, -2457.09, 779.44, 35.90, 0.00, 0.00, 0.00); CreateObject(1542, -2457.01, 778.88, 36.80, 0.00, 0.00, 271.85); CreateObject(1551, -2457.09, 779.41, 36.71, 0.00, 0.00, 0.00); CreateObject(1551, -2457.12, 778.68, 36.15, 0.00, 0.00, 0.00); CreateObject(1551, -2457.06, 777.58, 36.17, 0.00, 0.00, 0.00); CreateObject(1551, -2457.06, 777.15, 36.71, 0.00, 0.00, 0.00); CreateObject(1543, -2457.08, 778.27, 35.90, 0.00, 0.00, 0.00); CreateObject(1543, -2457.05, 777.67, 37.05, 0.00, 0.00, 0.00); CreateObject(1543, -2457.05, 777.67, 36.47, 0.00, 0.00, 0.00); CreateObject(1543, -2457.04, 778.83, 37.05, 0.00, 0.00, 0.00); CreateObject(1544, -2457.06, 778.41, 37.05, 0.00, 0.00, 0.00); CreateObject(1545, -2457.29, 776.50, 36.57, 0.00, 0.00, 269.54); CreateObject(1544, -2457.08, 777.34, 36.45, 0.00, 0.00, 0.00); CreateObject(1544, -2457.05, 779.43, 37.05, 0.00, 0.00, 0.00); CreateObject(1520, -2457.04, 777.79, 35.98, 0.00, 0.00, 0.00); CreateObject(1544, -2457.10, 777.90, 36.45, 0.00, 0.00, 0.00); CreateObject(1544, -2457.09, 778.87, 35.92, 0.00, 0.00, 0.00); CreateObject(1544, -2457.06, 778.49, 35.92, 0.00, 0.00, 0.00); CreateObject(1520, -2457.04, 777.20, 35.98, 0.00, 0.00, 0.00); CreateObject(1543, -2457.08, 778.27, 36.47, 0.00, 0.00, 0.00); CreateObject(1546, -2457.12, 778.78, 36.59, 0.00, 0.00, 0.00); CreateObject(1546, -2457.12, 778.78, 36.61, 0.00, 0.00, 0.00); CreateObject(2727, -2472.02, 789.18, 37.69, 92.00, 0.00, -178.00); // poe isso no final do gamemode... public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) { if(hittype == BULLET_HIT_TYPE_OBJECT) { if(weaponid == GetPlayerWeapon(playerid)) { if(hitid == Vidro[0] || hitid == Vidro[1] || hitid == Vidro[2] || hitid == Vidro[3]) { DestroyObject(Vidro[0]);DestroyObject(Vidro[1]);DestroyObject(Vidro[2]);DestroyObject(Vidro[3]); Vidro[0] = CreateObject(3857, -2472.08, 789.09, 37.44, 0.00, 0.00, 225.73); Vidro[1] = CreateObject(3857, -2475.91, 777.92, 37.44, 0.00, 0.00, 314.47); Vidro[2] = CreateObject(3857, -2475.85, 785.32, 37.44, 0.00, 0.00, 314.47); Vidro[3] = CreateObject(3857, -2460.87, 789.01, 37.44, 0.00, 0.00, 225.73); } } } return 1; }
Se for utilizб-lo em seu gamemode por favor coloque os crйditos... Obrigado.