(FS) Новогодняя ёлка v2 2017

Готовые решения скриптов, filterScript

Модератор: SJplayer

Аватара
Автор темы
LILU M
Подполковник
Подполковник
Сообщения: 462
Репутация: 16
С нами: 5 лет 6 месяцев

(FS) Новогодняя ёлка v2 2017

Сообщение #1 LILU » 25 декабря 2016, 11:25

Автор: S-M Carleone
phpBB [media]


Координаты для ТП: 1470.139,-1700.355,14.579 (X,Y,Z)

Код: Выделить всё

#define FILTERSCRIPT
#include <a_samp>
#include <streamer>
//=======================================================
new christmashat; new happycompliment; new newyearobjects;
//========================================================

public OnFilterScriptInit()
{
    return true;
}

public OnGameModeInit()
{
    new tmpobjid;
    tmpobjid = CreateDynamicObject(4186,1479.554,-1693.140,19.578,0.000,0.000,0.000,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 0, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterial(tmpobjid, 1, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterial(tmpobjid, 2, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterial(tmpobjid, 3, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterial(tmpobjid, 4, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterial(tmpobjid, 5, 4828, "airport3_las", "gnhotelwall02_128", 0);
    tmpobjid = CreateDynamicObject(3985,1479.562,-1631.453,12.078,0.000,0.000,0.000,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 0, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterial(tmpobjid, 1, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterial(tmpobjid, 2, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterial(tmpobjid, 3, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterial(tmpobjid, 4, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterial(tmpobjid, 5, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterial(tmpobjid, 6, 4828, "airport3_las", "gnhotelwall02_128", 0);
    tmpobjid = CreateDynamicObject(3861,1469.436,-1708.244,14.279,0.000,0.000,90.000,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 0, 2127, "cj_kitchen", "CJ_RED", 0);
    SetDynamicObjectMaterial(tmpobjid, 1, 2127, "cj_kitchen", "CJ_RED", 0);
    SetDynamicObjectMaterial(tmpobjid, 3, 8639, "chinatownmall", "ctmall04_64", 0);
    SetDynamicObjectMaterial(tmpobjid, 4, 8639, "chinatownmall", "ctmall04_64", 0);
    SetDynamicObjectMaterial(tmpobjid, 5, 8639, "chinatownmall", "ctmall04_64", 0);
    SetDynamicObjectMaterial(tmpobjid, 6, 8639, "chinatownmall", "ctmall04_64", 0);
    tmpobjid = CreateDynamicObject(3862,1469.446,-1701.119,14.279,0.000,0.000,90.000,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 0, 2127, "cj_kitchen", "CJ_RED", 0);
    SetDynamicObjectMaterial(tmpobjid, 1, 2127, "cj_kitchen", "CJ_RED", 0);
    tmpobjid = CreateDynamicObject(19126,1453.035,-1715.948,13.597,0.000,0.000,0.000,-1,-1,-1,900.000);
    SetDynamicObjectMaterialText(tmpobjid, 0, "None", 10, "Calibri", 20, 0, 0, 0, 0);
    tmpobjid = CreateDynamicObject(700,1495.087,-1702.333,13.726,356.858,0.000,3.141,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 1, 4828, "airport3_las", "gnhotelwall02_128", 0);
    tmpobjid = CreateDynamicObject(700,1495.615,-1709.899,13.726,356.858,0.000,3.141,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 1, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterial(tmpobjid, 2, 4828, "airport3_las", "gnhotelwall02_128", 0);
    tmpobjid = CreateDynamicObject(19477,1468.052,-1708.230,14.636,0.000,0.000,0.000,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 0, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterialText(tmpobjid, 0, "NEW YEAR 2017", 110, "Ariel", 50, 0, -1, 0, 1);
    tmpobjid = CreateDynamicObject(19477,1468.039,-1708.159,14.756,0.000,0.000,0.000,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 0, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterialText(tmpobjid, 0, "T", 90, "Wingdings", 60, 0, -1, 0, 0);
    tmpobjid = CreateDynamicObject(19477,1468.036,-1705.846,13.986,0.000,0.000,0.000,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 0, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterialText(tmpobjid, 0, "T", 90, "Wingdings", 60, 0, -1, 0, 0);
    tmpobjid = CreateDynamicObject(19477,1468.037,-1708.359,13.846,0.000,0.000,0.000,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 0, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterialText(tmpobjid, 0, "T", 90, "Wingdings", 60, 0, -1, 0, 0);
    tmpobjid = CreateDynamicObject(19477,1468.039,-1705.967,14.756,0.000,0.000,0.000,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 0, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterialText(tmpobjid, 0, "T", 90, "Wingdings", 60, 0, -1, 0, 0);
    tmpobjid = CreateDynamicObject(19477,1468.036,-1700.997,14.396,0.000,0.000,0.000,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 0, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterialText(tmpobjid, 0, "T", 90, "Wingdings", 90, 0, -1, 0, 0);
    tmpobjid = CreateDynamicObject(19477,1468.036,-1700.126,14.026,0.000,0.000,0.000,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 0, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterialText(tmpobjid, 0, "T", 90, "Wingdings", 90, 0, -1, 0, 0);
    tmpobjid = CreateDynamicObject(19477,1468.036,-1699.205,14.536,0.000,0.000,0.000,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 0, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterialText(tmpobjid, 0, "T", 90, "Wingdings", 90, 0, -1, 0, 0);
    tmpobjid = CreateDynamicObject(19477,1468.036,-1700.036,14.366,0.000,0.000,0.000,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 0, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterialText(tmpobjid, 0, "T", 130, "Wingdings", 77, 0, -1, 0, 0);
    tmpobjid = CreateDynamicObject(19477,1468.036,-1701.097,13.626,0.000,0.000,0.000,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 0, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterialText(tmpobjid, 0, "T", 130, "Wingdings", 77, 0, -1, 0, 0);
    tmpobjid = CreateDynamicObject(19477,1468.036,-1699.045,13.626,0.000,0.000,0.000,-1,-1,-1,900.000);
    SetDynamicObjectMaterial(tmpobjid, 0, 4828, "airport3_las", "gnhotelwall02_128", 0);
    SetDynamicObjectMaterialText(tmpobjid, 0, "T", 130, "Wingdings", 77, 0, -1, 0, 0);
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    tmpobjid = CreateDynamicObject(19076,1479.756,-1696.663,13.001,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19126,1467.152,-1715.928,13.597,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19127,1489.857,-1715.968,13.597,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19127,1503.963,-1715.984,13.597,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19126,1453.025,-1680.126,13.597,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19126,1467.176,-1680.107,13.597,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19127,1489.858,-1680.066,13.597,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19127,1503.927,-1680.072,13.597,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19066,1469.760,-1709.555,13.942,0.000,30.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19066,1469.734,-1709.092,13.942,0.000,30.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19066,1469.730,-1708.569,13.942,0.000,30.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19066,1469.688,-1708.046,13.942,0.000,30.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19066,1469.693,-1707.686,13.942,0.000,30.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19066,1469.651,-1707.161,13.942,0.000,30.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19066,1470.318,-1709.615,13.942,0.000,30.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19066,1470.296,-1709.072,13.942,0.000,30.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19066,1470.270,-1708.609,13.942,0.000,30.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19066,1470.244,-1708.125,13.942,0.000,30.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19066,1470.234,-1707.704,13.942,0.000,30.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19066,1470.308,-1707.207,13.942,0.000,30.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19076,1478.932,-1696.605,13.001,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19076,1480.521,-1696.729,13.001,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19076,1480.521,-1696.729,17.000,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19076,1478.932,-1696.605,17.000,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19076,1479.811,-1696.885,22.000,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19126,1478.234,-1697.196,13.579,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19057,1479.010,-1697.541,13.699,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19056,1478.998,-1695.761,13.699,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19058,1477.885,-1696.571,13.699,0.000,0.000,40.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19055,1480.209,-1695.834,13.699,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19058,1470.139,-1700.355,14.579,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19058,1470.102,-1701.811,14.579,0.000,0.000,20.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19058,1480.327,-1697.473,13.699,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19055,1481.548,-1696.834,13.699,0.000,0.000,20.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19125,1481.022,-1697.588,13.579,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19123,1480.901,-1696.297,13.579,0.000,0.000,0.000,-1,-1,-1,900.000);
    tmpobjid = CreateDynamicObject(19122,1478.282,-1696.006,13.579,0.000,0.000,0.000,-1,-1,-1,900.000);
    christmashat = CreatePickup(1239,2,1471.1676,-1708.3091,14.0469);
    happycompliment = CreatePickup(1239,2,1479.4182,-1694.0818,14.0467);
    newyearobjects = CreatePickup(1239,23,1471.2686,-1701.0460,14.0467);
    return true;
}
public OnPlayerConnect(playerid)
{
    RemoveBuildingForPlayer(playerid, 713, 1496.8672, -1707.8203, 13.4063, 0.25);
    RemoveBuildingForPlayer(playerid, 4057, 1479.554, -1693.140, 19.578, 0.250);
    RemoveBuildingForPlayer(playerid, 4210, 1479.562, -1631.453, 12.078, 0.250);
    RemoveBuildingForPlayer(playerid, 4186, 1479.554, -1693.140, 19.578, 0.250);
    RemoveBuildingForPlayer(playerid, 3985, 1479.562, -1631.453, 12.078, 0.250);
    return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(
pickupid == newyearobjects)
{
    ShowPlayerDialog(playerid,9090,DIALOG_STYLE_LIST,"{FFFFFF}Новогодние обьекты","Шляпа курицы\nОгонь на голову\nМигалка на голову\nЧерная маска\nМаска дракона\nЛазер на голову\nЧерная Шапка\nОгонь в руках\nПопугай на плечо\nКейс\nКостюм попугая\n{F60000}Снять все объекты","Выбрать","Закрыть");
}
if(
pickupid == christmashat)
{
    SetPlayerAttachedObject(playerid,2, 19065, 2, 0.13, 0.0, 0.0, 0.0, 90.0, 90.0);
    SendClientMessage(playerid,0xF60000AA,"Вам выдана 'новогодняя шапка'");
}
if(
pickupid == happycompliment)
{
ShowPlayerDialog(playerid,9091,DIALOG_STYLE_MSGBOX,"{FFFFFF}Поздравление","{FFFFFF}Привет, {2ED62E}приятель!{FFFFFF}\n\n{FFFFFF}Хочу поздравить тебя с наступающим {2ED62E}Новым 2017 Годом!{FFFFFF}\nЖелаю тебе {2ED62E}веселого, праздничного {FFFFFF}настроения!\n\nПроведи {2ED62E}уходящий{FFFFFF} и наступающий {2ED62E}Новый Год {FFFFFF}на {2ED62E}отлично!","Принять","Отмена");
}
return true;
}
public OnPlayerDisconnect(playerid, reason)
{
    RemovePlayerAttachedObject(playerid, 0); RemovePlayerAttachedObject(playerid, 1); RemovePlayerAttachedObject(playerid, 2); RemovePlayerAttachedObject(playerid, 3); RemovePlayerAttachedObject(playerid, 4); RemovePlayerAttachedObject(playerid, 5); RemovePlayerAttachedObject(playerid, 6); RemovePlayerAttachedObject(playerid, 7); RemovePlayerAttachedObject(playerid, 8); RemovePlayerAttachedObject(playerid, 9);
    return true;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case 9090:
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0:
                    {
                        new sendername[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 2);
                        SetPlayerAttachedObject(playerid,2,19137,2,0.100000,0.000000,0.000000,0.000000,0.000000,0.000000,1.000000,1.000000,1.000000);
                        SendClientMessage(playerid,0xF60000AA,"Вам выдана 'шляпа курицы'");
                        return true;
                    }
                    case 1:
                    {
                        new sendername[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 7);
                        SetPlayerAttachedObject(playerid,2, 19270, 2, 0.111052, 0.021643, -0.000846, 92.280899, 92.752510, 358.071044, 1.200000, 1.283168, 1.200000);
                        SendClientMessage(playerid,0xF60000AA,"Вам выдан 'огонь на голову'");
                        return true;
                    }
                    case 2:
                    {
                        new sendername[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 4);
                        SetPlayerAttachedObject(playerid,2, 18646, 2, 0.111052, 0.021643, -0.000846, 100.280899, 95.500000, 358.071044, 1.800000, 1.283168, 1.200000);
                        SendClientMessage(playerid,0xF60000AA,"Вам выдана 'мигалка'");
                        return true;
                    }
                    case 3:
                    {
                        new sendername[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 7);
                        SetPlayerAttachedObject(playerid,2, 19163, 2, 0.111052, 0.021643, -0.000846, 100.280899, 85.752510, 445.071044, 2.000000, 2.100000, 2.100000);
                        SendClientMessage(playerid,0xF60000AA,"Вам выдана 'черная маска'");
                        return true;
                    }
                    case 4:
                    {
                        new sendername[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 4);
                        SetPlayerAttachedObject(playerid,2, 3528, 2, 0.111052, 0.021643, -0.000846, 92.280899, 92.752510, 358.071044, 0.100000, 0.100000, 0.100000);
                        SendClientMessage(playerid,0xF60000AA,"Вам выдана 'маска дракона'");
                        return true;
                    }
                    case 5:
                    {
                        new sendername[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 4); RemovePlayerAttachedObject(playerid, 2); RemovePlayerAttachedObject(playerid, 7);
                        SetPlayerAttachedObject(playerid,2, 18643, 2, 0.111052, 0.021643, -0.000846, 92.280899, 92.752510, 358.071044, 1.200000, 1.283168, 1.200000);
                        SendClientMessage(playerid,0xF60000AA,"Вам выдан 'лазер'");
                        return true;
                    }
                    case 6:
                    {
                        new sendername[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 2);
                        SetPlayerAttachedObject(playerid,2, 18965, 2, 0.111052, 0.021643, -0.000846, 92.280899, 92.752510, 358.071044, 1.300000, 1.283168, 1.200000);
                        SendClientMessage(playerid,0xF60000AA,"Вам выдана 'черная шапка'");
                        return true;
                    }
                    case 7:
                    {
                        new sendername[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(IsPlayerAttachedObjectSlotUsed(playerid, 0) || IsPlayerAttachedObjectSlotUsed(playerid, 1) || IsPlayerAttachedObjectSlotUsed(playerid, 2))
                        {
                            RemovePlayerAttachedObject(playerid, 0);
                            RemovePlayerAttachedObject(playerid, 1);
                        }
                        SetPlayerAttachedObject(playerid,0, 18693, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000);
                        SetPlayerAttachedObject(playerid,1, 18693, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000);
                        SendClientMessage(playerid,0xF60000AA,"Вам выдан 'огонь в руки'");
                        return true;
                    }
                    case 8:
                    {
                        new sendername[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(IsPlayerAttachedObjectSlotUsed(playerid, 7)) RemovePlayerAttachedObject(playerid, 7);
                        SetPlayerAttachedObject(playerid,7, 19078, 1, 0.329150, -0.072101, 0.156082, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
                        SendClientMessage(playerid,0xF60000AA,"Вам выдан 'попугай'");
                        return true;
                   }
                   case 9:
                   {
                        new sendername[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) RemovePlayerAttachedObject(playerid, 1);
                        SetPlayerAttachedObject(playerid,1,1210,6,0.299999,0.099999,0.000000,0.000000,-83.000000,0.000000,1.000000);
                        SendClientMessage(playerid,0xF60000AA,"Вам выдан 'кейс'");
                        return true;
                   }
                   case 10:
                   {
                        new sendername[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(IsPlayerAttachedObjectSlotUsed(playerid, 0)) RemovePlayerAttachedObject(playerid, 0); RemovePlayerAttachedObject(playerid, 1); RemovePlayerAttachedObject(playerid, 7); RemovePlayerAttachedObject(playerid, 4); RemovePlayerAttachedObject(playerid, 2);
                        SetPlayerAttachedObject(playerid,0, 19078, 1, -1.097527, -0.348305, -0.008029, 0.000000, 0.000000, 0.000000, 8.073966, 8.073966, 8.073966);
                        SendClientMessage(playerid,0xF60000AA,"Вам выдан 'костюм попугая'");
                        return true;
                   }
                   case 11:
                   {
                        new sendername[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        RemovePlayerAttachedObject(playerid, 0);
                        RemovePlayerAttachedObject(playerid, 1);
                        RemovePlayerAttachedObject(playerid, 2);
                        RemovePlayerAttachedObject(playerid, 4);
                        RemovePlayerAttachedObject(playerid, 7);
                        SendClientMessage(playerid,0xF60000AA,"Вы сняли все новогодние обьекты");
                        return true;
                    }
                }
            }
        }
    }
    return 1;
}

! ! !


  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Скрипты / FS»

Кто сейчас на форуме