Объектов: 25
Время работы: 25 минут





Код удаления некоторых объектов :
PHP код:
RemoveBuildingForPlayer(playerid7131496.8672, -1707.820313.40630.25);
RemoveBuildingForPlayer(playerid12801468.9844, -1713.507813.45310.25);
RemoveBuildingForPlayer(playerid12311479.6953, -1716.703115.62500.25);
RemoveBuildingForPlayer(playerid12801488.7656, -1713.703113.45310.25);
RemoveBuildingForPlayer(playerid6731457.7266, -1710.062512.39840.25);
RemoveBuildingForPlayer(playerid6201461.6563, -1707.687511.83590.25);
RemoveBuildingForPlayer(playerid12801468.9844, -1704.640613.45310.25);
RemoveBuildingForPlayer(playerid7001463.0625, -1701.570313.72660.25);
RemoveBuildingForPlayer(playerid12311479.6953, -1702.531315.62500.25);
RemoveBuildingForPlayer(playerid6731457.5547, -1697.289112.39840.25);
RemoveBuildingForPlayer(playerid12801468.9844, -1694.046913.45310.25);
RemoveBuildingForPlayer(playerid12311479.3828, -1692.390615.63280.25);
RemoveBuildingForPlayer(playerid6201461.1250, -1687.562511.83590.25);
RemoveBuildingForPlayer(playerid7001463.0625, -1690.648413.72660.25);
RemoveBuildingForPlayer(playerid6411458.6172, -1684.132811.10160.25);
RemoveBuildingForPlayer(playerid12801468.9844, -1682.718813.45310.25);
RemoveBuildingForPlayer(playerid12311479.3828, -1682.312515.63280.25);
RemoveBuildingForPlayer(playerid12801488.7656, -1704.593813.45310.25);
RemoveBuildingForPlayer(playerid7001494.2109, -1694.437513.72660.25);
RemoveBuildingForPlayer(playerid12801488.7656, -1693.734413.45310.25);
RemoveBuildingForPlayer(playerid6201496.9766, -1686.851611.83590.25);
RemoveBuildingForPlayer(playerid6411494.1406, -1689.234411.10160.25);
RemoveBuildingForPlayer(playerid12801488.7656, -1682.671913.45310.25);
RemoveBuildingForPlayer(playerid6731498.9609, -1684.609412.39840.25); 
PHP код:
//Ёлка 
CreateObject(19129,1478.54699707,-1690.45703125,13.10900021,0.00000000,0.00000000,0.00000000); //object
CreateObject(19126,1488.57995605,-1700.63793945,13.61100006,0.00000000,0.00000000,0.00000000); //object
CreateObject(19125,1468.43005371,-1700.65295410,13.61100006,0.00000000,0.00000000,0.00000000); //object
CreateObject(19124,1468.38500977,-1680.30102539,13.61100006,0.00000000,0.00000000,0.00000000); //object
CreateObject(19123,1488.68896484,-1680.35705566,13.61100006,0.00000000,0.00000000,0.00000000); //object
CreateObject(19406,1479.72595215,-1679.17297363,14.79699993,0.00000000,0.00000000,90.00000000); //object
CreateObject(19386,1479.66198730,-1676.06994629,14.79699993,0.00000000,0.00000000,90.00000000); //object
CreateObject(19366,1478.08300781,-1677.64001465,14.79699993,0.00000000,0.00000000,0.00000000); //object
CreateObject(19366,1481.28405762,-1677.63195801,14.79699993,0.00000000,0.00000000,0.00000000); //object
CreateObject(1491,1478.88305664,-1676.06799316,13.04699993,0.00000000,0.00000000,0.00000000); //object
CreateObject(19366,1479.68701172,-1677.61096191,16.52199936,0.00000000,90.00000000,0.00000000); //object
CreateObject(2370,1479.34997559,-1678.52795410,13.04699993,0.00000000,0.00000000,0.00000000); //object
CreateObject(1954,1479.68701172,-1678.36694336,14.00100040,0.00000000,0.00000000,0.00000000); //object
CreateObject(2232,1478.41699219,-1679.52795410,16.00300026,0.00000000,0.00000000,0.00000000); //object
CreateObject(2232,1480.96801758,-1679.63696289,16.00300026,0.00000000,0.00000000,0.00000000); //object
CreateObject(2229,1469.30895996,-1679.36596680,13.04699993,0.00000000,0.00000000,35.00000000); //object
CreateObject(2229,1488.37902832,-1679.63793945,13.04699993,0.00000000,0.00000000,325.00000000); //object
CreateObject(19076,1479.15197754,-1691.47705078,13.17899990,0.00000000,0.00000000,0.00000000); //object
CreateObject(19056,1480.68103027,-1693.75402832,13.83600044,0.00000000,0.00000000,0.00000000); //object
CreateObject(19055,1478.66394043,-1693.39697266,13.83600044,0.00000000,0.00000000,0.00000000); //object
CreateObject(19054,1477.35900879,-1691.98999023,13.83199978,0.00000000,0.00000000,0.00000000); //object
CreateObject(19058,1480.89794922,-1690.09594727,13.83600044,0.00000000,0.00000000,0.00000000); //object
CreateObject(19057,1478.67797852,-1690.34594727,13.83600044,0.00000000,0.00000000,0.00000000); //object
CreateObject(18863,1521.27001953,-1690.88696289,23.17900085,0.00000000,0.00000000,0.00000000); //object
CreateObject(18864,1475.25598145,-1684.47399902,13.17899990,0.00000000,0.00000000,0.00000000); //object 
PHP код:
//Ёлка 2 
CreateObject(19129,1478.54699707,-1690.45703125,13.10900021,0.00000000,0.00000000,0.00000000); //object
CreateObject(19126,1488.57995605,-1700.63793945,13.61100006,0.00000000,0.00000000,0.00000000); //object
CreateObject(19125,1468.43005371,-1700.65295410,13.61100006,0.00000000,0.00000000,0.00000000); //object
CreateObject(19124,1468.38500977,-1680.30102539,13.61100006,0.00000000,0.00000000,0.00000000); //object
CreateObject(19123,1488.68896484,-1680.35705566,13.61100006,0.00000000,0.00000000,0.00000000); //object
CreateObject(19406,1479.72595215,-1679.17297363,14.79699993,0.00000000,0.00000000,90.00000000); //object
CreateObject(19386,1479.66198730,-1676.06994629,14.79699993,0.00000000,0.00000000,90.00000000); //object
CreateObject(19366,1478.08300781,-1677.64001465,14.79699993,0.00000000,0.00000000,0.00000000); //object
CreateObject(19366,1481.28405762,-1677.63195801,14.79699993,0.00000000,0.00000000,0.00000000); //object
CreateObject(1491,1478.88305664,-1676.06799316,13.04699993,0.00000000,0.00000000,0.00000000); //object
CreateObject(19366,1479.68701172,-1677.61096191,16.52199936,0.00000000,90.00000000,0.00000000); //object
CreateObject(2370,1479.34997559,-1678.52795410,13.04699993,0.00000000,0.00000000,0.00000000); //object
CreateObject(1954,1479.68701172,-1678.36694336,14.00100040,0.00000000,0.00000000,0.00000000); //object
CreateObject(2232,1478.41699219,-1679.52795410,16.00300026,0.00000000,0.00000000,0.00000000); //object
CreateObject(2232,1480.96801758,-1679.63696289,16.00300026,0.00000000,0.00000000,0.00000000); //object
CreateObject(2229,1469.30895996,-1679.36596680,13.04699993,0.00000000,0.00000000,35.00000000); //object
CreateObject(2229,1488.37902832,-1679.63793945,13.04699993,0.00000000,0.00000000,325.00000000); //object
CreateObject(19076,1479.15197754,-1691.47705078,13.17899990,0.00000000,0.00000000,0.00000000); //object
CreateObject(19056,1480.68103027,-1693.75402832,13.83600044,0.00000000,0.00000000,0.00000000); //object
CreateObject(19055,1478.66394043,-1693.39697266,13.83600044,0.00000000,0.00000000,0.00000000); //object
CreateObject(19054,1477.35900879,-1691.98999023,13.83199978,0.00000000,0.00000000,0.00000000); //object
CreateObject(19058,1480.89794922,-1690.09594727,13.83600044,0.00000000,0.00000000,0.00000000); //object
CreateObject(19057,1478.67797852,-1690.34594727,13.83600044,0.00000000,0.00000000,0.00000000); //object
CreateObject(18863,1521.27001953,-1690.88696289,23.17900085,0.00000000,0.00000000,0.00000000); //object
CreateObject(18864,1475.25598145,-1684.47399902,13.17899990,0.00000000,0.00000000,0.00000000); //object 
Ну к такой ёлочке обязательно надо поставить какую нибудь хорошую новогоднюю музыку!

Для начала, вам нужно определиться, где будет играть музыка. Вам нужны координаты того места, откуда вы бы хотели, чтобы играла музыка, это x, y, z

Потом в public OnPlayerUpdate(playerid) добавляем:


PHP код:
if(IsPlayerInRangeOfPoint(playerid,100,1480.4370,-1701.9601,14.0469))//Радиус,x,y,z > Изменяем на своё
    
{
    if(!
GetPVarInt(playerid,"music"))
    {
         
SetPVarInt(playerid,"music",1);
         
PlayAudioStreamForPlayer(playerid"http://radio.zaycev.fm:9002/ZaycevFM(256).m3u",1480.4370,-1701.9601,14.0469,100,true);//x,y,z,радиус > Меняем на своё,и ссылку тоже
         
}
    }
    else
    {
     if(
GetPVarInt(playerid,"music"))
    {
        
DeletePVar(playerid,"music");
        
StopAudioStreamForPlayer(playerid);
        }
     } 
Вот и всё всем спасибо!)