Доступ к готовым решениям

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Мануал Создания покупки оружия как gta4

Статус
В этой теме нельзя размещать новые ответы.

Серёга94

Новичок
В начале
PHP:
#define Knife                           250
#define Bat                                     500
#define Chainsaw                        1500
#define Grenade                         500
#define TGas                            350
#define Molotov                         750
#define P9mm                            1500
#define Silenced                        1800
#define Deagle                          2200
#define Shotgun                         3000
#define Sawnoff                         3500
#define Combat                          4500
#define Uzi                                     2800
#define MP5                                     3200
#define AK47                            5000
#define M4                                      5500
#define CR                                      2500  //Country Rifle
#define SR                                      8000  //Sniper Rifle
#define Tec9                            4500
#define Armor                           1000

new Text:TD[9];
new Text:PriceTD[MAX_PLAYERS];
new Weapon[MAX_PLAYERS];
forward IsPlayerNearWeapon();
в public IsPlayerNearWeapon
PHP:
public IsPlayerNearWeapon()
{
        for (new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
                {
                if(IsPlayerInRangeOfPoint(i, 1, 2122.02, -1915.82, 13.05))
                        {
                        new string[64];
                        format(string, sizeof(string),"100x AK-47 rounds $%d", AK47);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 1;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2122.05, -1914.11, 13.04))
                        {
                        new string[64];
                        format(string, sizeof(string),"100x M4 rounds $%d", M4);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 2;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2121.98, -1912.48, 13.52))
                        {
                        new string[64];
                        format(string, sizeof(string),"10x Sniper Rifle rounds $%d", SR);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 3;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2121.93, -1911.18, 13.25))
                        {
                        new string[64];
                        format(string, sizeof(string),"50x Sawnoff Shotgun rounds $%d", Sawnoff);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 4;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2119.35, -1914.14, 13.56))
                        {
                        new string[64];
                        format(string, sizeof(string),"Body Armor $%d", Armor);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 5;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2122.04, -1909.82, 13.34))
                        {
                        new string[64];
                        format(string, sizeof(string),"20x Shotgun rounds $%d", Shotgun);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 6;
                        Show(i);
                        }

            else if(IsPlayerInRangeOfPoint(i, 1, 2120.99, -1909.21, 13.25))
                        {
                        new string[64];
                        format(string, sizeof(string),"50x Combat Shotgun rounds $%d", Combat);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 7;
                        Show(i);
                        }

                else if(IsPlayerInRangeOfPoint(i, 1, 2114.94, -1910.17, 13.53))
                        {
                        new string[64];
                        format(string, sizeof(string),"20x Country Rifle rounds $%d", CR);
                        TextDrawSetString(PriceTD[i], string);
            Weapon[i] = 8;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2119.35, -1913.29, 13.29))
                        {
                        new string[64];
                        format(string, sizeof(string),"1x Grenade $%d", Grenade);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 9;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2114.67, -1911.47, 13.29))
                        {
                        new string[64];
                        format(string, sizeof(string),"100x MP5 rounds $%d", MP5);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 10;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2114.33, -1917.45, 13.10))
                        {
                        new string[64];
                        format(string, sizeof(string),"1x Tear Gas $%d", TGas);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 11;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2114.68, -1916.65, 13.03))
                        {
                        new string[64];
                        format(string, sizeof(string),"20x 9mm Pistol rounds $%d", P9mm);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 12;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2114.67, -1915.54, 13.03))
                        {
                        new string[64];
                        format(string, sizeof(string),"20x Silenced 9mm Pistol rounds $%d", Silenced);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 13;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2114.62, -1914.60, 13.03))
                        {
                        new string[64];
                        format(string, sizeof(string),"20x Desert Eagle rounds $%d", Deagle);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 14;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2118.07, -1914.19, 13.47))
                        {
                        new string[64];
                        format(string, sizeof(string),"1x Molotov Cocktail $%d", Molotov);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 15;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2114.57, -1913.56, 13.37))
                        {
                        new string[64];
                        format(string, sizeof(string),"100x Uzi rounds $%d", Uzi);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 16;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2114.73, -1912.55, 13.59))
                        {
                        new string[64];
                        format(string, sizeof(string),"Chainsaw $%d", Chainsaw);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 17;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2119.30, -1914.65, 13.25))
                        {
                        new string[64];
                        format(string, sizeof(string),"Baseball Bat $%d", Bat);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 18;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2118.20, -1915.25, 13.23))
                        {
                        new string[64];
                        format(string, sizeof(string),"Knife $%d", Knife);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 19;
                        Show(i);
                        }

                        else if(IsPlayerInRangeOfPoint(i, 1, 2116.98, -1909.02, 13.23))
                        {
                        new string[64];
                        format(string, sizeof(string),"100x Tec-9 rounds $%d", Tec9);
                        TextDrawSetString(PriceTD[i], string);
                        Weapon[i] = 20;
                        Show(i);
                        }

                        else
                        {
                                Hide(i);
                                Weapon[i] = 0;
                        }
            }
        }
        return 1;
}
В любое место
PHP:
stock Show(i)
{
        TextDrawShowForPlayer(i, TD[1]);
        TextDrawShowForPlayer(i, TD[2]);
        TextDrawShowForPlayer(i, TD[3]);
        TextDrawShowForPlayer(i, TD[4]);
        TextDrawShowForPlayer(i, TD[5]);
        TextDrawShowForPlayer(i, TD[6]);
        TextDrawShowForPlayer(i, TD[7]);
        TextDrawShowForPlayer(i, PriceTD[i]);
        return 1;
}

stock Hide(i)
{
        TextDrawHideForPlayer(i, TD[0]);
        TextDrawHideForPlayer(i, TD[1]);
        TextDrawHideForPlayer(i, TD[2]);
        TextDrawHideForPlayer(i, TD[3]);
        TextDrawHideForPlayer(i, TD[4]);
        TextDrawHideForPlayer(i, TD[5]);
        TextDrawHideForPlayer(i, TD[6]);
    TextDrawHideForPlayer(i, TD[7]);
    TextDrawHideForPlayer(i, TD[8]);
    TextDrawHideForPlayer(i, PriceTD[i]);
        return 1;
}
В public OnFilterScriptInit
PHP:
SetTimer("IsPlayerNearWeapon", 1500, 1);

        CreateDynamicObject(19355, 2118.44995, -1904.50696, 14.19120,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(19364, 2118.44995, -1904.48706, 14.19120,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(19379, 2118.44800, -1909.67554, 12.49120,   0.00000, -90.00000, 90.00000);
        CreateDynamicObject(19385, 2115.23804, -1904.50757, 14.19120,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(19393, 2115.23804, -1904.48706, 14.19120,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(19401, 2121.65332, -1904.49316, 14.19120,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(19410, 2121.65332, -1904.48706, 14.19120,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(19428, 2113.71899, -1924.46301, 14.19120,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(19437, 2113.71704, -1924.46301, 14.19120,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(19447, 2113.71899, -1909.22278, 14.19120,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(19456, 2113.71704, -1909.22278, 14.19120,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(19379, 2118.44800, -1920.15796, 12.49120,   0.00000, -90.00000, 90.00000);
        CreateDynamicObject(19466, 2121.61328, -1904.42529, 14.11730,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(19377, 2118.44800, -1909.65552, 15.86790,   0.00000, -90.00000, 90.00000);
        CreateDynamicObject(19377, 2118.44800, -1920.15552, 15.86790,   0.00000, -90.00000, 90.00000);
        CreateDynamicObject(19456, 2118.44409, -1925.31995, 14.19120,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(19447, 2118.44409, -1925.29407, 14.19120,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(19456, 2113.71704, -1918.84277, 14.19120,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(19447, 2113.71899, -1918.84277, 14.19120,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(1499, 2114.46973, -1904.47266, 12.44810,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(19456, 2123.17798, -1909.21741, 14.19120,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(19456, 2123.17798, -1918.83801, 14.19120,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(19447, 2123.15796, -1909.21741, 14.19120,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(19447, 2123.15796, -1918.83801, 14.19120,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(19437, 2123.17798, -1924.44507, 14.19120,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(1297, 2124.05542, -1925.31726, 13.96610,   0.00000, 0.00000, 180.00000);
        CreateDynamicObject(19428, 2123.15796, -1924.44507, 14.19120,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(1617, 2117.26050, -1904.55286, 15.25530,   0.00000, 0.00000, -90.00000);
        CreateDynamicObject(1372, 2123.74658, -1905.88379, 12.66670,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(2673, 2124.17725, -1905.87805, 12.64900,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(1264, 2123.65088, -1907.03052, 12.98880,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(3808, 2114.83472, -1904.33716, 15.44680,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(2921, 2113.83838, -1904.40588, 15.53100,   0.00000, 0.00000, -90.00000);
        CreateDynamicObject(19355, 2121.48462, -1908.30920, 14.19120,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(19355, 2115.40479, -1908.30920, 14.19120,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(1271, 2119.17749, -1913.36084, 12.91890,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(1271, 2118.43262, -1913.38000, 12.91890,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(1271, 2119.18652, -1914.12061, 12.91890,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(1271, 2119.20776, -1914.87659, 12.91890,   0.00000, 0.00000, 95.00000);
        CreateDynamicObject(18075, 2118.51880, -1913.25720, 15.77737,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(2359, 2118.78223, -1913.36707, 13.47940,   0.00000, 0.00000, 180.00000);
        CreateDynamicObject(18885, 2122.62500, -1905.62317, 13.65810,   0.00000, 0.00000, -90.00000);
        CreateDynamicObject(3014, 2114.10449, -1908.87634, 12.77980,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(3014, 2114.10449, -1908.87634, 13.25980,   0.00000, 0.00000, 10.00000);
        CreateDynamicObject(2255, 2116.28394, -1908.87817, 14.22350,   0.00000, -10.00000, 0.00000);
        CreateDynamicObject(2049, 2113.84839, -1911.24072, 14.84120,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(2056, 2117.58081, -1910.76709, 12.59920,   -90.00000, 0.00000, 0.00000);
        CreateDynamicObject(2056, 2116.31445, -1905.54358, 12.59920,   -90.00000, 0.00000, 40.00000);
        CreateDynamicObject(3014, 2114.16455, -1908.87634, 13.73980,   0.00000, 0.00000, 45.00000);
        CreateDynamicObject(2055, 2116.24194, -1908.19958, 14.32310,   0.00000, 0.00000, 180.00000);
        CreateDynamicObject(1448, 2122.24219, -1907.46191, 12.63810,   0.00000, 0.00000, 23.10000);
        CreateDynamicObject(1886, 2122.70850, -1907.87341, 15.77770,   10.00000, 0.00000, 236.31218);
        CreateDynamicObject(19355, 2121.49219, -1918.74341, 14.19120,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(19355, 2118.29224, -1918.74341, 14.19120,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(19385, 2115.39258, -1918.74341, 14.19120,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(1495, 2114.62573, -1918.72070, 12.57872,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(17969, 2113.58105, -1913.51343, 14.67740,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(1728, 2121.01294, -1918.24915, 12.57910,   0.00000, 0.00000, 180.00000);
        CreateDynamicObject(2058, 2120.35132, -1912.75488, 12.59940,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(2610, 2122.67480, -1917.83582, 13.39930,   0.00000, 0.00000, 261.82339);
        CreateDynamicObject(2610, 2122.68970, -1918.37000, 13.39930,   0.00000, 0.00000, -90.00000);
        CreateDynamicObject(1886, 2122.81689, -1918.22900, 15.77770,   10.00000, 0.00000, 208.42300);
        CreateDynamicObject(1271, 2122.68262, -1916.95068, 12.91890,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(2056, 2123.03589, -1915.98303, 14.27410,   0.00000, 0.00000, -90.00000);
        CreateDynamicObject(2595, 2122.54102, -1916.91064, 13.61750,   0.00000, 0.00000, 230.00000);
        CreateDynamicObject(2196, 2122.06665, -1917.40405, 13.97490,   0.00000, 0.00000, 180.00000);
        CreateDynamicObject(19385, 2118.38477, -1908.30920, 14.19120,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(2619, 2120.13013, -1908.21301, 14.34820,   10.00000, 0.00000, -90.00000);
        CreateDynamicObject(1583, 2114.97705, -1925.19031, 12.57880,   0.00000, 0.00000, 180.00000);
        CreateDynamicObject(1584, 2117.11279, -1925.27002, 12.57880,   0.00000, 0.00000, 180.00000);
        CreateDynamicObject(1585, 2119.36865, -1925.26892, 12.57880,   0.00000, 0.00000, 180.00000);
        CreateDynamicObject(2619, 2115.97266, -1925.18335, 14.72600,   -5.00000, 0.00000, -90.00000);
        CreateDynamicObject(2049, 2123.02881, -1922.64661, 14.77210,   0.00000, 0.00000, -90.00000);
        CreateDynamicObject(2050, 2118.71216, -1918.61267, 14.85990,   0.00000, 0.00000, 180.00000);
        CreateDynamicObject(1587, 2121.52368, -1922.13367, 13.77680,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(1586, 2121.44995, -1922.12573, 13.11590,   0.00000, 0.00000, -90.00000);
        CreateDynamicObject(2358, 2119.18555, -1912.76538, 12.69960,   0.00000, 0.00000, 180.00000);
        CreateDynamicObject(2358, 2118.46753, -1912.77124, 12.69960,   0.00000, 0.00000, 180.00000);
        CreateDynamicObject(3015, 2121.81641, -1918.37122, 12.67930,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(2315, 2114.33008, -1916.49622, 12.53960,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(2358, 2114.59009, -1916.34998, 12.71960,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(2358, 2114.59985, -1915.68945, 12.77960,   0.00000, 10.00000, 90.00000);
        CreateDynamicObject(2358, 2114.51270, -1914.98889, 12.71960,   0.00000, 0.00000, 102.27089);
        CreateDynamicObject(3013, 2114.20288, -1908.83813, 14.14060,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(3791, 2122.45850, -1914.73865, 12.57950,   0.00000, 0.00000, -90.00000);
        CreateDynamicObject(2985, 2114.26636, -1924.10278, 12.57950,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(964, 2122.45703, -1912.31287, 12.57960,   0.00000, 0.00000, -90.00000);
        CreateDynamicObject(2043, 2122.81323, -1913.93103, 13.14870,   0.00000, 0.00000, 9.83778);
        CreateDynamicObject(2043, 2122.62646, -1916.08069, 13.14870,   0.00000, 0.00000, 268.93179);
        CreateDynamicObject(2043, 2122.77295, -1912.28076, 13.62920,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(2180, 2114.34766, -1912.67664, 12.57850,   0.00000, 0.00000, 276.73907);
        CreateDynamicObject(1271, 2118.30347, -1914.21057, 12.91890,   0.00000, 0.00000, 83.79114);
        CreateDynamicObject(1271, 2118.28931, -1915.06152, 12.91890,   0.00000, 0.00000, 135.92392);
        CreateDynamicObject(1271, 2122.24512, -1910.95410, 12.91890,   0.00000, 0.00000, 87.72339);
        CreateDynamicObject(964, 2122.14844, -1909.32849, 12.41960,   0.00000, 0.00000, 321.69351);
        CreateDynamicObject(1271, 2120.66797, -1908.91052, 12.91890,   0.00000, 0.00000, 180.00000);
        CreateDynamicObject(1271, 2119.61182, -1908.86072, 12.91890,   0.00000, 0.00000, 180.00000);
        CreateDynamicObject(1271, 2119.59180, -1908.88074, 13.59890,   0.00000, 0.00000, 195.99280);
        CreateDynamicObject(964, 2114.48535, -1910.44714, 12.57960,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(3014, 2114.14429, -1918.06494, 12.77980,   0.00000, 0.00000, 0.85503);
        CreateDynamicObject(3014, 2114.19580, -1917.42139, 12.77980,   0.00000, 0.00000, 339.62024);
        CreateDynamicObject(3014, 2114.14429, -1918.06494, 13.25980,   0.00000, 0.00000, 345.51355);
        CreateDynamicObject(1271, 2114.49585, -1913.47852, 12.91890,   0.00000, 0.00000, 83.79114);
        CreateDynamicObject(2358, 2114.53589, -1912.69202, 12.69960,   0.00000, 0.00000, 102.27090);
        CreateDynamicObject(2358, 2114.53589, -1912.69202, 12.93960,   0.00000, 0.00000, 91.91235);
        CreateDynamicObject(1271, 2117.76392, -1918.21045, 12.91890,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(1271, 2116.87842, -1918.17322, 12.91890,   0.00000, 0.00000, 8.34863);
        CreateDynamicObject(1271, 2116.87842, -1918.17322, 13.59890,   0.00000, 0.00000, 347.48041);
        CreateDynamicObject(1582, 2117.81616, -1917.96680, 13.25360,   0.00000, 0.00000, 356.69019);
        CreateDynamicObject(2683, 2117.98657, -1918.42517, 13.38360,   0.00000, 0.00000, 180.00000);
        CreateDynamicObject(1271, 2116.83496, -1908.84753, 12.91890,   0.00000, 0.00000, 180.00000);
        CreateDynamicObject(2358, 2116.12622, -1908.96313, 12.77960,   0.00000, -15.00000, 0.00000);
        CreateDynamicObject(2358, 2115.15405, -1909.01843, 12.77960,   0.00000, 0.00000, 18.99926);
        CreateDynamicObject(2358, 2115.13818, -1908.87500, 13.01960,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(1271, 2114.37793, -1911.67285, 12.91890,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(19175, 2113.80835, -1915.75159, 14.66220,   0.00000, 0.00000, 90.00000);
        CreateDynamicObject(19172, 2123.06812, -1914.00415, 14.47680,   0.00000, 0.00000, -90.00000);
        CreateDynamicObject(355, 2122.02515, -1915.82202, 13.05490,   97.20000, 41.46000, 50.00000);
        CreateDynamicObject(356, 2122.05347, -1914.11548, 13.04860,   97.20000, 41.46000, 50.00000);
        CreateDynamicObject(358, 2121.98511, -1912.48474, 13.52950,   97.20000, 50.46000, 50.00000);
        CreateDynamicObject(350, 2121.93994, -1911.18848, 13.25780,   97.00000, 45.00000, 50.00000);
        CreateDynamicObject(19142, 2119.35547, -1914.14160, 13.56950,   0.00000, -90.00000, -90.00000);
        CreateDynamicObject(349, 2122.04102, -1909.82202, 13.34990,   102.20000, 45.20000, 100.00000);
        CreateDynamicObject(351, 2120.99805, -1909.21326, 13.25760,   95.00000, 45.00000, 135.00000);
        CreateDynamicObject(357, 2114.94238, -1910.17432, 13.53000,   100.00000, 50.00000, -125.00000);
        CreateDynamicObject(2043, 2114.32202, -1910.05969, 13.62920,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(342, 2118.66528, -1913.43713, 13.45980,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(342, 2118.67310, -1913.33105, 13.45980,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(342, 2118.67310, -1913.23108, 13.45980,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(342, 2118.78540, -1913.43713, 13.45980,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(342, 2118.90527, -1913.43713, 13.45980,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(342, 2119.04541, -1913.43713, 13.45980,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(342, 2118.79321, -1913.33105, 13.45980,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(342, 2118.79321, -1913.23108, 13.45980,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(342, 2118.91309, -1913.33105, 13.45980,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(342, 2118.91309, -1913.23108, 13.45980,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(342, 2119.05298, -1913.33105, 13.45980,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(342, 2119.05298, -1913.23108, 13.45980,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(342, 2119.35767, -1913.29968, 13.29780,   0.00000, -15.00000, 0.00000);
        CreateDynamicObject(353, 2114.67090, -1911.47644, 13.29770,   100.00000, 45.00000, -130.00000);
        CreateDynamicObject(343, 2114.33350, -1917.45947, 13.10130,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(343, 2114.35352, -1917.47900, 13.02130,   90.00000, 0.00000, 180.00000);
        CreateDynamicObject(343, 2114.25342, -1917.47900, 13.02130,   90.00000, 0.00000, 180.00000);
        CreateDynamicObject(346, 2114.68677, -1916.65332, 13.03480,   93.88000, -40.82000, -40.00000);
        CreateDynamicObject(347, 2114.67358, -1915.54016, 13.03500,   93.88000, -40.82000, -35.00000);
        CreateDynamicObject(348, 2114.62891, -1914.60986, 13.03430,   87.86000, -40.82000, -40.00000);
        CreateDynamicObject(344, 2118.07129, -1914.19226, 13.47790,   0.00000, 0.00000, 0.00000);
        CreateDynamicObject(352, 2114.57959, -1913.56018, 13.37960,   93.00000, 45.00000, -125.00000);
        CreateDynamicObject(341, 2114.73169, -1912.55725, 13.59960,   0.00000, 30.00000, -150.00000);
        CreateDynamicObject(336, 2119.30811, -1914.65930, 13.25750,   85.00000, -45.00000, 0.00000);
        CreateDynamicObject(335, 2118.20044, -1915.25000, 13.23760,   90.00000, 0.00000, -135.00000);
        CreateDynamicObject(372, 2116.98535, -1909.02734, 13.23770,   93.00000, 45.00000, 140.00000);

        TD[0] = TextDrawCreate(160.857147, 103.046669, "usebox");
        TextDrawLetterSize(TD[0], 0.000000, 4.644180);
        TextDrawTextSize(TD[0], 16.666666, 0.000000);
        TextDrawAlignment(TD[0], 1);
        TextDrawColor(TD[0], 0);
        TextDrawUseBox(TD[0], true);
        TextDrawBoxColor(TD[0], 102);
        TextDrawSetShadow(TD[0], 0);
        TextDrawSetOutline(TD[0], 0);
        TextDrawFont(TD[0], 0);

        TD[1] = TextDrawCreate(166.571411, 103.046669, "usebox");
        TextDrawLetterSize(TD[1], 0.000000, 3.463225);
        TextDrawTextSize(TD[1], 16.666666, 0.000000);
        TextDrawAlignment(TD[1], 1);
        TextDrawColor(TD[1], 0);
        TextDrawUseBox(TD[1], true);
        TextDrawBoxColor(TD[1], 102);
        TextDrawSetShadow(TD[1], 0);
        TextDrawSetOutline(TD[1], 0);
        TextDrawFont(TD[1], 0);

        TD[2] = TextDrawCreate(21.714282, 104.106758, "Press           to buy ammo.");
        TextDrawLetterSize(TD[2], 0.203142, 1.454933);
        TextDrawAlignment(TD[2], 1);
        TextDrawColor(TD[2], -1);
        TextDrawSetShadow(TD[2], 0);
        TextDrawSetOutline(TD[2], 1);
        TextDrawBackgroundColor(TD[2], 51);
        TextDrawFont(TD[2], 1);
        TextDrawSetProportional(TD[2], 1);

        TD[3] = TextDrawCreate(45.047622, 106.886665, "usebox");
        TextDrawLetterSize(TD[3], 0.000000, 1.058148);
        TextDrawTextSize(TD[3], 41.809516, 0.000000);
        TextDrawAlignment(TD[3], 1);
        TextDrawColor(TD[3], 0);
        TextDrawUseBox(TD[3], true);
        TextDrawBoxColor(TD[3], -1);
        TextDrawSetShadow(TD[3], 0);
        TextDrawSetOutline(TD[3], 0);
        TextDrawFont(TD[3], 0);

        TD[4] = TextDrawCreate(73.619049, 106.886665, "usebox");
        TextDrawLetterSize(TD[4], 0.000000, -0.336136);
        TextDrawTextSize(TD[4], 42.190475, 0.000000);
        TextDrawAlignment(TD[4], 1);
        TextDrawColor(TD[4], 0);
        TextDrawUseBox(TD[4], true);
        TextDrawBoxColor(TD[4], -1);
        TextDrawSetShadow(TD[4], 0);
        TextDrawSetOutline(TD[4], 0);
        TextDrawFont(TD[4], 0);

        TD[5] = TextDrawCreate(73.619049, 119.259994, "usebox");
        TextDrawLetterSize(TD[5], 0.000000, -0.316666);
        TextDrawTextSize(TD[5], 42.190483, 0.000000);
        TextDrawAlignment(TD[5], 1);
        TextDrawColor(TD[5], 0);
        TextDrawUseBox(TD[5], true);
        TextDrawBoxColor(TD[5], -1);
        TextDrawSetShadow(TD[5], 0);
        TextDrawSetOutline(TD[5], 0);
        TextDrawFont(TD[5], 0);

        TD[6] = TextDrawCreate(73.238090, 106.886665, "usebox");
        TextDrawLetterSize(TD[6], 0.000000, 0.991271);
        TextDrawTextSize(TD[6], 70.761901, 0.000000);
        TextDrawAlignment(TD[6], 1);
        TextDrawColor(TD[6], 0);
        TextDrawUseBox(TD[6], true);
        TextDrawBoxColor(TD[6], -1);
        TextDrawSetShadow(TD[6], 0);
        TextDrawSetOutline(TD[6], 0);
        TextDrawFont(TD[6], 0);

        TD[7] = TextDrawCreate(44.952407, 104.106704, "ENTER");
        TextDrawLetterSize(TD[7], 0.186380, 1.429333);
        TextDrawAlignment(TD[7], 1);
        TextDrawColor(TD[7], -1);
        TextDrawSetShadow(TD[7], 0);
        TextDrawSetOutline(TD[7], 1);
        TextDrawBackgroundColor(TD[7], 51);
        TextDrawFont(TD[7], 2);
        TextDrawSetProportional(TD[7], 1);

        TD[8] = TextDrawCreate(20.952363, 117.760009, "You can't carry any more of that~n~type of ammo.");
        TextDrawLetterSize(TD[8], 0.186761, 1.407999);
        TextDrawAlignment(TD[8], 1);
        TextDrawColor(TD[8], -1347440726);
        TextDrawSetShadow(TD[8], 0);
        TextDrawSetOutline(TD[8], 1);
        TextDrawBackgroundColor(TD[8], 51);
        TextDrawFont(TD[8], 1);
        TextDrawSetProportional(TD[8], 1);

        for(new i = 0; i < MAX_PLAYERS; i++)
        {
        PriceTD[i] = TextDrawCreate(20.952363, 117.760009, " ");
        TextDrawLetterSize(PriceTD[i], 0.186761, 1.407999);
        TextDrawAlignment(PriceTD[i], 1);
        TextDrawColor(PriceTD[i], -1347440726);
        TextDrawSetShadow(PriceTD[i], 0);
        TextDrawSetOutline(PriceTD[i], 1);
        TextDrawBackgroundColor(PriceTD[i], 51);
        TextDrawFont(PriceTD[i], 1);
        TextDrawSetProportional(PriceTD[i], 1);
        }
В public OnPlayerConnect
PHP:
RemoveBuildingForPlayer(playerid, 620, 2114.5547, -1928.1875, 5.0313, 0.25);
        RemoveBuildingForPlayer(playerid, 620, 2113.3984, -1925.0391, 10.8047, 0.25);
        RemoveBuildingForPlayer(playerid, 620, 2115.6719, -1922.7656, 10.8047, 0.25);
        RemoveBuildingForPlayer(playerid, 620, 2123.3594, -1928.0703, 6.8438, 0.25);
        RemoveBuildingForPlayer(playerid, 620, 2122.6563, -1916.7891, 10.8047, 0.25);
        RemoveBuildingForPlayer(playerid, 620, 2116.9297, -1916.0781, 10.8047, 0.25);
        RemoveBuildingForPlayer(playerid, 620, 2121.5078, -1909.5313, 10.8047, 0.25);
        RemoveBuildingForPlayer(playerid, 620, 2110.2734, -1906.5859, 5.0313, 0.25);
В public OnPlayerDisconnect
PHP:
TextDrawDestroy(TD[0]);
        TextDrawDestroy(TD[1]);
        TextDrawDestroy(TD[2]);
        TextDrawDestroy(TD[3]);
        TextDrawDestroy(TD[4]);
        TextDrawDestroy(TD[5]);
        TextDrawDestroy(TD[6]);
        TextDrawDestroy(TD[7]);
        TextDrawDestroy(TD[8]);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
        TextDrawDestroy(PriceTD[playerid]);
        }
В public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
PHP:
if (newkeys == KEY_SECONDARY_ATTACK)
        {
                switch (Weapon[playerid])
                {
                    case 1:
                        {
                        if(GetPlayerMoney(playerid)>= AK47)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 30, 100);
                            GivePlayerMoney(playerid, -AK47);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"AK-47 purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
            case 2:
                        {
                        if(GetPlayerMoney(playerid)>= M4)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 31, 100);
                            GivePlayerMoney(playerid, -M4);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"M4 purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 3:
                        {
                        if(GetPlayerMoney(playerid)>= SR)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 34, 10);
                            GivePlayerMoney(playerid, -SR);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"Sniper Rifle purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 4:
                        {
                        if(GetPlayerMoney(playerid)>= Sawnoff)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 26, 50);
                            GivePlayerMoney(playerid, -Sawnoff);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"Sawnoff Shotgun purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 5:
                        {
                        if(GetPlayerMoney(playerid)>= Armor)
                                {
                                    new string[64];
                                SetPlayerArmour(playerid, 100);
                            GivePlayerMoney(playerid, -Armor);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"Body Armor purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 6:
                        {
                        if(GetPlayerMoney(playerid)>= Shotgun)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 25, 20);
                            GivePlayerMoney(playerid, -Shotgun);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"Shotgun purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 7:
                        {
                        if(GetPlayerMoney(playerid)>= Combat)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 27, 50);
                            GivePlayerMoney(playerid, -Combat);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"Combat Shotgun purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 8:
                        {
                        if(GetPlayerMoney(playerid)>= CR)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 33, 20);
                            GivePlayerMoney(playerid, -CR);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"Country Rifle purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 9:
                        {
                        if(GetPlayerMoney(playerid)>= Grenade)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 16, 1);
                            GivePlayerMoney(playerid, -Grenade);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"Grenade purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 10:
                        {
                        if(GetPlayerMoney(playerid)>= MP5)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 29, 100);
                            GivePlayerMoney(playerid, -MP5);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"MP5 purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 11:
                        {
                        if(GetPlayerMoney(playerid)>= TGas)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 17, 1);
                            GivePlayerMoney(playerid, -TGas);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"Tear Gas purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 12:
                        {
                        if(GetPlayerMoney(playerid)>= P9mm)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 22, 20);
                            GivePlayerMoney(playerid, -P9mm);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"9mm Pistol purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 13:
                        {
                        if(GetPlayerMoney(playerid)>= Silenced)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 23, 20);
                            GivePlayerMoney(playerid, -Silenced);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"Silenced 9mm Pistol purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 14:
                        {
                        if(GetPlayerMoney(playerid)>= Deagle)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 24, 20);
                            GivePlayerMoney(playerid, -Deagle);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"Desert Eagle purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 15:
                        {
                        if(GetPlayerMoney(playerid)>= Molotov)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 18, 1);
                            GivePlayerMoney(playerid, -Molotov);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"Molotov Cocktail purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 16:
                        {
                        if(GetPlayerMoney(playerid)>= Uzi)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 28, 100);
                            GivePlayerMoney(playerid, -Uzi);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"Uzi purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 17:
                        {
                        if(GetPlayerMoney(playerid)>= Chainsaw)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 9, 1);
                            GivePlayerMoney(playerid, -Chainsaw);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"Chainsaw purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 18:
                        {
                        if(GetPlayerMoney(playerid)>= Bat)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 5, 1);
                            GivePlayerMoney(playerid, -Bat);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"Baseball Bat purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 19:
                        {
                        if(GetPlayerMoney(playerid)>= Knife)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 4, 1);
                            GivePlayerMoney(playerid, -Knife);
                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"Knife purchased.");
                                        TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                        format(string, sizeof(string),"You can't afford the payment!");
                                        TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                case 20:
                        {
                        if(GetPlayerMoney(playerid)>= Tec9)
                                {
                                    new string[64];
                                GivePlayerWeapon(playerid, 32, 100);
                                GivePlayerMoney(playerid, -Tec9);
                                PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                format(string, sizeof(string),"Tec-9 purchased.");
                                 TextDrawSetString(PriceTD[playerid], string);
                        }
                                else
                                {
                                    new string[64];
                                    PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0);
                                    format(string, sizeof(string),"You can't afford the payment!");
                                     TextDrawSetString(PriceTD[playerid], string);
                                }
                    }
                }
        }



 
Последнее редактирование модератором:
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу