22.08.2017, 07:05
Mapa Palco&Som
-------------------------------------------------------------------------------------------
O mapa se trata de um palco na frente da praia
de Los Santos com iluminaзгo de leds, da ate pra fazer "showzinho"
de DJ (e ou banda) no servidor ideal pros forrozeiros.
Baseado nos palcos das bandas de forrу daqui de minha regiгo(Cearб).
por favor criticas e sugestхes nos comentбrios!
-------------------------------------------------------------------------------------------
http://i.imgur.com/XNaPBK3.png
http://i.imgur.com/AzUiUX9.png
http://i.imgur.com/CyxyEpz.png
http://i.imgur.com/aU1YAfU.png
http://i.imgur.com/XfCz2LA.png
-------------------------------------------------------------------------------------------
PHP код:
#include <a_samp>
#include <ZCMD>
new
SetLuz,
Leds[6][6],
Leds_2[6][6],
TimerSequence,
EnumeradorDeLeds[6]=
{
18648, //AZUL
18647, //VERMELHO
18649, //VERDE
18652, //BRANCO
18651, //LILAS
18650 //AMARELO
}
;
public OnFilterScriptInit()
{
SetWeather(80);//de noite
ligarleds();
CreateObject(3867, 290.10001, -1784, 5.5, 270.791, 71.566, 341.564);
CreateObject(3864, 282.60001, -1794.3, 9.5, 0, 0, 90.5);
CreateObject(3864, 299.20001, -1794.3, 9.5, 0, 0, 90.5);
CreateObject(3864, 299.20001, -1794.3, 7.9, 0, 0, 90.5);
CreateObject(3864, 299.20001, -1794.3, 6.3, 0, 0, 90.5);
CreateObject(3864, 299.20001, -1794.3, 4.7, 0, 0, 90.5);
CreateObject(3864, 282.60001, -1794.3, 7.9, 0, 0, 90.5);
CreateObject(3864, 282.60001, -1794.3, 6.3, 0, 0, 90.5);
CreateObject(3864, 282.60001, -1794.3, 4.7, 0, 0, 90.5);
CreateObject(3114, 291.5, -1787, 7.2, 0, 0, 0);
CreateObject(3386, 300.5, -1788.1, 8.9, 0, 180.25, 180);
CreateObject(3387, 300.5, -1787.1, 6, 0, 0, 0);
CreateObject(3388, 300.5, -1789.1, 5.8, 0, 0, 0);
CreateObject(3388, 300.60001, -1788.09998, 5.8, 0, 0, 0);
CreateObject(3390, 300.10001, -1784.8, 7.8, 0, 0, 0);
CreateObject(3787, 284.39999, -1780, 8.3, 0, 0, 0);
CreateObject(3787, 284.39999, -1780, 9.3, 0, 0, 0);
CreateObject(3787, 282, -1782.1, 8.3, 0, 0, 270);
CreateObject(3787, 281.89999, -1785.5, 8.3, 0, 0, 270);
CreateObject(3787, 281.79999, -1788.9, 8.3, 0, 0, 270);
CreateObject(3793, 283.20001, -1782.5, 8.4, 0, 0, 269.25);
CreateObject(3791, 299.10001, -1790.9, 8.2, 0, 0, 205);
CreateObject(3791, 296.39999, -1781.7, 8.2, 0, 0, 270);
CreateObject(3791, 286.39999, -1781.7, 8.2, 0, 0, 270);
CreateObject(1139, 284.51367, -1786.73633, 7.4479, 0, 0, 0);
CreateObject(1139, 284.67285, -1786.40234, 7.4479, 0, 0, 0);
CreateObject(5154, 291.20001, -1785.9, 3.8, 0, 0, 270.75);
CreateObject(3114, 291.5, -1781.1, 7.2, 0, 0, 0);
CreateObject(16089, 291.20001, -1781.3, 5.1, 0, 0, 90.5);
CreateObject(16365, 291.20001, -1786.7, 11.1, 0, 0, 269.5);
CreateObject(8957, 283.5, -1792.2, 3.8, 0, 0, 270);
CreateObject(8957, 290.70001, -1792.2, 3.8, 0, 0, 270);
CreateObject(8957, 297.89999, -1792.2, 3.8, 0, 0, 270);
CreateObject(2909, 304, -1792.6, 4.8, 0, 0, 269);
CreateObject(2909, 302, -1778, 4.6, 0, 0, 2.746);
CreateObject(2909, 312.10001, -1771.1, 4.8, 0, 0, 245.493);
CreateObject(1337, 302.45313, -1778.1768, 5.21472, 0, 0, 0);
CreateObject(964, 298.89999, -1791, 8.7, 0, 0, 20.5);
CreateObject(964, 286.29999, -1781.9, 8.7, 0, 0, 0);
CreateObject(964, 282.29999, -1791.9, 7.8, 0, 0, 0);
CreateObject(964, 281.79999, -1788.7, 8.9, 0, 0, 0);
CreateObject(2775, 286.70001, -1782.1, 12.9, 0, 0, 0);
CreateObject(2775, 290.29999, -1782.1, 12.9, 0, 0, 0);
CreateObject(2775, 293.70001, -1782, 12.8, 0, 0, 0);
CreateObject(2775, 297, -1782, 12.8, 0, 0, 0);
CreateObject(8253, 291.5, -1780.8, 11.1, 0, 0, 271);
CreateObject(8957, 279.29999, -1773.3, 4.4, 0, 0, 0.25);
CreateObject(8957, 282.89999, -1769.1, 4.4, 0, 0, 279.247);
CreateObject(8957, 290, -1768.6, 4.4, 0, 0, 268.995);
CreateObject(8957, 297.10001, -1768.8, 4.4, 0, 0, 268.995);
CreateObject(8957, 300, -1769, 4.4, 0, 0, 268.995);
CreateObject(2909, 301.10001, -1767, 4.6, 0, 0, 2.741);
CreateObject(2909, 302.20001, -1786.4, 4.6, 0, 0, 0.741);
CreateObject(2909, 278.20001, -1792.6, 4.8, 0, 0, 268.995);
CreateObject(10244, 289.79999, -1773, 4.2, 0, 0, 185.25);
CreateObject(1958, 300.39999, -1789.1, 8.8, 0, 0, 0);
CreateObject(1958, 300.70001, -1789.1, 8.8, 0, 0, 0);
CreateObject(1958, 300.29999, -1788.3, 8.9, 0, 0, 0);
CreateObject(1958, 300.20001, -1787.3, 9, 0, 0, 0);
CreateObject(1958, 300.5, -1787.3, 9, 0, 0, 0);
CreateObject(1958, 300.60001, -1788.2, 9, 0, 0, 0);
CreateObject(1958, 300.79999, -1788.3, 8.8, 0, 0, 0);
CreateObject(1958, 299.60001, -1786, 8.8, 0, 0, 0);
CreateObject(1958, 282.5, -1791.5, 8.8, 0, 0, 0);
CreateObject(1958, 281.89999, -1786.3, 8.9, 0, 0, 0);
CreateObject(3281, 292, -1827.1, 3.9, 0, 0, 0);
CreateObject(3281, 290.10001, -1828.9, 3.9, 0, 0, 270);
CreateObject(3281, 293.79999, -1828.8, 3.9, 0, 0, 270);
CreateObject(3041, 292, -1828.9, 3.4, 0, 0, 0);
CreateObject(3040, 301.60001, -1818.3, 6.1, 0, 0, 0);
CreateObject(3040, 301.60001, -1809.5, 6.1, 0, 0, 0);
CreateObject(1785, 290.79999, -1828.7, 4.5, 0, 0, 0);
CreateObject(1785, 290.79999, -1828.7, 4.7, 0, 0, 0);
CreateObject(1783, 290.79999, -1828.7, 4.9, 0, 0, 0);
CreateObject(1788, 291.60001, -1828.8, 4.5, 0, 0, 0);
CreateObject(2102, 292.5, -1828.8, 4.5, 296, 0, 0);
CreateObject(2104, 293.39999, -1828.5, 4.4, 0, 0, 0);
CreateObject(2104, 296.89999, -1791.7, 7.7, 0, 0, 272);
CreateObject(2104, 296.89999, -1791.1, 7.7, 0, 0, 272);
CreateObject(2102, 296.5, -1790.9, 9, 0, 0, 270);
CreateObject(2102, 296.5, -1791.6, 9, 0, 0, 270);
CreateObject(2102, 296.5, -1790.9, 9.2, 0, 0, 270);
CreateObject(2102, 296.5, -1791.6, 9.2, 0, 0, 270);
CreateObject(2232, 281.79999, -1795.1, 4.4, 0, 0, 0);
CreateObject(2232, 282.39999, -1795.1, 4.4, 0, 0, 0);
CreateObject(2232, 283, -1795.1, 4.4, 0, 0, 0);
CreateObject(2232, 283.60001, -1795.1, 4.4, 0, 0, 0);
CreateObject(2232, 281.79999, -1795.1, 5.5, 0, 0, 0);
CreateObject(2232, 282.39999, -1795.1, 5.5, 0, 0, 0);
CreateObject(2232, 283, -1795.1, 5.5, 0, 0, 0);
CreateObject(2232, 283.60001, -1795.1, 5.5, 0, 0, 0);
CreateObject(2232, 298.20001, -1795.1, 4.4, 0, 0, 0);
CreateObject(2232, 298.79999, -1795.1, 4.4, 0, 0, 0);
CreateObject(2232, 299.39999, -1795.1, 4.4, 0, 0, 0);
CreateObject(2232, 300, -1795.1, 4.4, 0, 0, 0);
CreateObject(2232, 298.20001, -1795.1, 5.5, 0, 0, 0);
CreateObject(2232, 298.79999, -1795.1, 5.5, 0, 0, 0);
CreateObject(2232, 299.39999, -1795.1, 5.5, 0, 0, 0);
CreateObject(2232, 300, -1795.1, 5.5, 0, 0, 0);
CreateObject(2232, 296.60001, -1790.2, 8.4, 0, 0, 271.75);
CreateObject(2232, 296.60001, -1790.2, 9.5, 0, 0, 271.747);
CreateObject(2232, 283.20001, -1790.9, 9.5, 0, 0, 89.75);
CreateObject(2232, 283.20001, -1790.3, 9.5, 0, 0, 87.995);
CreateObject(2232, 283.20001, -1790.3, 8.3, 0, 0, 94.245);
CreateObject(2232, 283.20001, -1790.9, 8.3, 0, 0, 87.995);
CreateObject(2232, 291.70001, -1792, 7.6, 334, 0, 228.997);
CreateObject(2232, 292.10001, -1791.5, 7.6, 333.995, 0, 228.994);
CreateObject(2232, 287.79999, -1792, 7.6, 333.995, 0, 134.994);
CreateObject(2232, 287.39999, -1791.6, 7.6, 333.99, 0, 134.989);
CreateObject(2232, 296.10001, -1785.9, 7.6, 333.99, 0, 266.234);
CreateObject(2232, 296.10001, -1786.5, 7.6, 333.99, 0, 266.232);
CreateObject(2232, 294.39999, -1781.6, 8.3, 0, 0, 291.747);
CreateObject(2232, 290.70001, -1780.5, 8.3, 0, 0, 75.997);
CreateObject(1788, 292.60001, -1828.8, 4.5, 0, 0, 0);
CreateObject(1788, 292.20001, -1828.8, 4.5, 0, 0, 0);
CreateObject(14392, 286.20001, -1788.30005, 9, 0, 0, 205.75);
CreateObject(964, 280, -1795.6, 7.8, 0, 0, 0);
CreateObject(964, 280, -1795.6, 6.9, 0, 0, 0);
CreateObject(964, 280, -1795.6, 6.1, 0, 0, 0);
CreateObject(964, 280, -1795.6, 5.2, 0, 0, 0);
CreateObject(964, 280, -1795.6, 4.3, 0, 0, 0);
CreateObject(964, 280, -1795.6, 3.4, 0, 0, 0);
CreateObject(964, 280, -1795.6, 8.7, 0, 0, 0);
return 1;
}
public OnFilterScriptExit()
{
desligarleds();
return 1;
}
forward sequenciador(Float:x, Float:y, Float:z);
public sequenciador(Float:x, Float:y, Float:z)
{
switch(SetLuz)
{
case 0:
{
SetObjectPos(Leds[5][0], 0, 0, 9999999);
SetObjectPos(Leds[5][1], 0, 0, 9999999);
SetObjectPos(Leds[5][2], 0, 0, 9999999);
SetObjectPos(Leds[5][3],0, 0, 9999999);
SetObjectPos(Leds[0][0], x+0, y, z-1);
SetObjectPos(Leds[0][1], x+3, y, z-1);
SetObjectPos(Leds[0][2], x+6, y, z-1);
SetObjectPos(Leds[0][3], x+9, y, z-1);
SetObjectPos(Leds_2[5][0], 0, 0, 9999999);
SetObjectPos(Leds_2[5][1], 0, 0, 9999999);
SetObjectPos(Leds_2[5][2], 0, 0, 9999999);
SetObjectPos(Leds_2[5][3],0, 0, 9999999);
SetObjectPos(Leds_2[0][0], x+0, y+7, z+3);
SetObjectPos(Leds_2[0][1], x+3, y+7, z+3);
SetObjectPos(Leds_2[0][2], x+6, y+7, z+3);
SetObjectPos(Leds_2[0][3], x+9, y+7, z+3);
}
case 1:
{
SetObjectPos(Leds[0][0],0, 0, 9999999);
SetObjectPos(Leds[0][1],0, 0, 9999999);
SetObjectPos(Leds[0][2],0, 0, 9999999);
SetObjectPos(Leds[0][3],0, 0, 9999999);
SetObjectPos(Leds[1][0], x+0, y, z-1);
SetObjectPos(Leds[1][1], x+3, y, z-1);
SetObjectPos(Leds[1][2], x+6, y, z-1);
SetObjectPos(Leds[1][3], x+9, y, z-1);
SetObjectPos(Leds_2[0][0],0, 0, 9999999);
SetObjectPos(Leds_2[0][1],0, 0, 9999999);
SetObjectPos(Leds_2[0][2],0, 0, 9999999);
SetObjectPos(Leds_2[0][3],0, 0, 9999999);
SetObjectPos(Leds_2[1][0], x+0, y+7, z+3);
SetObjectPos(Leds_2[1][1], x+3, y+7, z+3);
SetObjectPos(Leds_2[1][2], x+6, y+7, z+3);
SetObjectPos(Leds_2[1][3], x+9, y+7, z+3);
}
case 2:
{
SetObjectPos(Leds[1][0],0, 0, 9999999);
SetObjectPos(Leds[1][1],0, 0, 9999999);
SetObjectPos(Leds[1][2],0, 0, 9999999);
SetObjectPos(Leds[1][3],0, 0, 9999999);
SetObjectPos(Leds[2][0], x+0, y, z-1);
SetObjectPos(Leds[2][1], x+3, y, z-1);
SetObjectPos(Leds[2][2], x+6, y, z-1);
SetObjectPos(Leds[2][3], x+9, y, z-1);
SetObjectPos(Leds_2[1][0],0, 0, 9999999);
SetObjectPos(Leds_2[1][1],0, 0, 9999999);
SetObjectPos(Leds_2[1][2],0, 0, 9999999);
SetObjectPos(Leds_2[1][3],0, 0, 9999999);
SetObjectPos(Leds_2[2][0], x+0, y+7, z+3);
SetObjectPos(Leds_2[2][1], x+3, y+7, z+3);
SetObjectPos(Leds_2[2][2], x+6, y+7, z+3);
SetObjectPos(Leds_2[2][3], x+9, y+7, z+3);
}
case 3:
{
SetObjectPos(Leds[2][0],0, 0, 9999999);
SetObjectPos(Leds[2][1],0, 0, 9999999);
SetObjectPos(Leds[2][2],0, 0, 9999999);
SetObjectPos(Leds[2][3],0, 0, 9999999);
SetObjectPos(Leds[3][0], x+0, y, z-1);
SetObjectPos(Leds[3][1], x+3, y, z-1);
SetObjectPos(Leds[3][2], x+6, y, z-1);
SetObjectPos(Leds[3][3], x+9, y, z-1);
SetObjectPos(Leds_2[2][0],0, 0, 9999999);
SetObjectPos(Leds_2[2][1],0, 0, 9999999);
SetObjectPos(Leds_2[2][2],0, 0, 9999999);
SetObjectPos(Leds_2[2][3],0, 0, 9999999);
SetObjectPos(Leds_2[3][0], x+0, y+7, z+3);
SetObjectPos(Leds_2[3][1], x+3, y+7, z+3);
SetObjectPos(Leds_2[3][2], x+6, y+7, z+3);
SetObjectPos(Leds_2[3][3], x+9, y+7, z+3);
}
case 4:
{
SetObjectPos(Leds[3][0],0, 0, 9999999);
SetObjectPos(Leds[3][1],0, 0, 9999999);
SetObjectPos(Leds[3][2],0, 0, 9999999);
SetObjectPos(Leds[3][3],0, 0, 9999999);
SetObjectPos(Leds[4][0], x+0, y, z-1);
SetObjectPos(Leds[4][1], x+3, y, z-1);
SetObjectPos(Leds[4][2], x+6, y, z-1);
SetObjectPos(Leds[4][3], x+9, y, z-1);
SetObjectPos(Leds_2[3][0],0, 0, 9999999);
SetObjectPos(Leds_2[3][1],0, 0, 9999999);
SetObjectPos(Leds_2[3][2],0, 0, 9999999);
SetObjectPos(Leds_2[3][3],0, 0, 9999999);
SetObjectPos(Leds_2[4][0], x+0, y+7, z+3);
SetObjectPos(Leds_2[4][1], x+3, y+7, z+3);
SetObjectPos(Leds_2[4][2], x+6, y+7, z+3);
SetObjectPos(Leds_2[4][3], x+9, y+7, z+3);
}
case 5:
{
SetObjectPos(Leds[4][0],0, 0, 9999999);
SetObjectPos(Leds[4][1],0, 0, 9999999);
SetObjectPos(Leds[4][2],0, 0, 9999999);
SetObjectPos(Leds[4][3],0, 0, 9999999);
SetObjectPos(Leds[5][0], x+0, y, z-1);
SetObjectPos(Leds[5][1], x+3, y, z-1);
SetObjectPos(Leds[5][2], x+6, y, z-1);
SetObjectPos(Leds[5][3], x+9, y, z-1);
SetObjectPos(Leds_2[4][0],0, 0, 9999999);
SetObjectPos(Leds_2[4][1],0, 0, 9999999);
SetObjectPos(Leds_2[4][2],0, 0, 9999999);
SetObjectPos(Leds_2[4][3],0, 0, 9999999);
SetObjectPos(Leds_2[5][0], x+0, y+7, z+3);
SetObjectPos(Leds_2[5][1], x+3, y+7, z+3);
SetObjectPos(Leds_2[5][2], x+6, y+7, z+3);
SetObjectPos(Leds_2[5][3], x+9, y+7, z+3);
SetLuz = 0;
return 1;
}
}
SetLuz++;
return 1;
}
stock ligarleds()
{
for(new L=0; L < 4; L++){
Leds[0][L] = CreateObject(EnumeradorDeLeds[0], 0, 0, 9999999, 0, 0, 90);
Leds[1][L] = CreateObject(EnumeradorDeLeds[1], 0, 0, 9999999, 0, 0, 90);
Leds[2][L] = CreateObject(EnumeradorDeLeds[2], 0, 0, 9999999, 0, 0, 90);
Leds[3][L] = CreateObject(EnumeradorDeLeds[3], 0, 0, 9999999, 0, 0, 90);
Leds[4][L] = CreateObject(EnumeradorDeLeds[4], 0, 0, 9999999, 0, 0, 90);
Leds[5][L] = CreateObject(EnumeradorDeLeds[5], 0, 0, 9999999, 0, 0, 90);
Leds_2[0][L] = CreateObject(EnumeradorDeLeds[0], 0, 0, 9999999, 0, 0, 90);
Leds_2[1][L] = CreateObject(EnumeradorDeLeds[1], 0, 0, 9999999, 0, 0, 90);
Leds_2[2][L] = CreateObject(EnumeradorDeLeds[2], 0, 0, 9999999, 0, 0, 90);
Leds_2[3][L] = CreateObject(EnumeradorDeLeds[3], 0, 0, 9999999, 0, 0, 90);
Leds_2[4][L] = CreateObject(EnumeradorDeLeds[4], 0, 0, 9999999, 0, 0, 90);
Leds_2[5][L] = CreateObject(EnumeradorDeLeds[5], 0, 0, 9999999, 0, 0, 90);
}
TimerSequence = SetTimerEx("sequenciador", 1000, true, "fff", 290.9209-4.6, -1789.7126, 8.7547);
return 1;
}
stock desligarleds()
{
KillTimer(TimerSequence);
SetLuz = 0;
for(new L; L < 5; L++){
DestroyObject(Leds[0][L]);
DestroyObject(Leds[1][L]);
DestroyObject(Leds[2][L]);
DestroyObject(Leds[3][L]);
DestroyObject(Leds[4][L]);
DestroyObject(Leds[5][L]);
DestroyObject(Leds_2[0][L]);
DestroyObject(Leds_2[1][L]);
DestroyObject(Leds_2[2][L]);
DestroyObject(Leds_2[3][L]);
DestroyObject(Leds_2[4][L]);
DestroyObject(Leds_2[5][L]);
}
return 1;
}
CMD:irpraia(playerid)
{
SetPlayerPos(playerid, 286.8528, -1820.4282, 4.1117);
return 1;
}