Graffiti System

amxx reapi Graffiti System 3.7Fix3

Нет прав для скачивания
Установка
1. Содержимое папок models, sound, sprites загрузить в папку cstrike
2. Содержимое папок addons/amxmodx/configs и addons/amxmodx/data переместить по соответствующим путям
3. (Опционально) Если вам нужно автосохранение выбранного спрея, то откройте исходный файл Graffiti_System.sma находящийся в папке scripting, и раскомментируйте в строке 17 "#define SAVE_SP". Далее откройте файл Graffiti_System.ini в папке configs и отредактируйте следующие значения
C-like:
[Настройки]
{
    [Граффити | Настройки]
    {
        // Соединение с базой данных:
        HOST                        ""                // Адрес сервера
        USER                        ""                // Пользователь
        PASSWORD                    ""                // Пароль
        DATABASE                    ""                // Название
        TABLE                        "MySQL_SP"        // Название таблицы

4. Скомпилируйте исходник локальным компилятором и скопируйте Graffiti_System.amxx в папку plugins
Настройки
C-like:
//
// ВНИМАНИЕ!!! Редактируйте файл только через Notepad+
// ВНИМАНИЕ!!! Не изменяйте расположение ключей в файле, это может привести к ошибка и багам!
//
// Типы проверок:
//    n - Ник, s - SteamID, i - Ip, f - Флаг
//
// Пример:
//    "n" "XxXx#xXxX" | "s" "STEAM_ID_LAN" | "i" "127.0.0.1" | "f" "a"
//
// Плагин поддерживает:
//    Модели, Спрайты, Wav, Mp3
//
//    "n" "XxXx#xXxX" | "s" "STEAM_ID_LAN" | "i" "127.0.0.1" | "f" "a"

[Настройки]
{
    [Граффити | Настройки]
    {
        // Соеденение с базой данных:
        HOST                        ""                // Адрес сервера
        USER                        ""                // Пользователь
        PASSWORD                    ""                // Пароль
        DATABASE                    ""                // Название
        TABLE                        "MySQL_SP"        // Название таблицы

        MAX_SPRAYS_ALIVE            "120"            // Максимальное кол-во граффити, которое может одновременно существовать на карте        | Стандартно: 80
        TIME_REMOVE_SPRAY            "110"            // Время в секундах, через которое граффити удалится                                    | Стандартно: 110

        TIME_SET_SPRAY                "1"            // Время в секундах, через которое снова можно поставить граффити                        | Стандартно: 100
        PRESS_DELAY                    "0.2"            // Задержка для использования кнопки T                                                    | Стандартно: 0.2

        USABLE_DIST                    "130"            // Максимальная дистанция на которой работает граффити                                    | Стандартно: 130
        SPRAY_LIGHT                    "0"                // Подсветка граффити ( 0 - Выкл | 1 - Вкл )                                            | Стандартно: 0

        WALL_CHECKER_DEBUG_LEVEL    "0"                // Используйте для настройки кординат граффити ( 0 - Выкл | 1 - Вкл )                    | Стандартно: 0
    }

    [Граффити | Модели]
    {
;        "Название модели"         "Путь к модели"                                "Ширина, Высота"     "Анимация"    "FRAME RATE"     "Субмодель"    "Скин"         "Проверка"    "Данные"    "Время"
;        "Пример модели"            "model.mdl"                                    "100, 200"            "1"            ""                "3"            "2"            "f"            "a"            "20.06.2020 09:30"
;
;        Если в модели нету субмоделей/скинов/анимации, то оставьте зачения в кавычках пустыми.

        "Нету"                    ""                                            ""                    ""            ""                ""            ""            ""            ""            ""
        "Граффити 1"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 45"            ""            ""                "0"            ""            ""            ""            ""
        "Граффити 2"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 45"            ""            ""                "1"         ""            ""            ""            ""
        "Граффити 3"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "2"         ""            ""            ""            ""
        "Граффити 4"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "3"         ""            ""            ""            ""
        "Граффити 5"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "4"         ""            ""            ""            ""
        "Граффити 6"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "5"         ""            ""            ""            ""
        "Граффити 7"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "6"         ""            ""            ""            ""
        "Граффити 8"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "7"         ""            ""            ""            ""
        "Граффити 9"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "8"         ""            ""            ""            ""
        "Граффити 10"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "9"         ""            ""            ""            ""
        "Граффити 11"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "10"         ""            ""            ""            ""
        "Граффити 12"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "11"         ""            ""            ""            ""
        "Граффити 13"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "12"         ""            ""            ""            ""
        "Граффити 14"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "13"         ""            ""            ""            ""
        "Граффити 15"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "14"         ""            ""            ""            ""
        "Граффити 16"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "15"         ""            ""            ""            ""
        "Граффити 17"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "16"         ""            ""            ""            ""
        "Граффити 18"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "17"         ""            ""            ""            ""
        "Граффити 19"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "18"         ""            ""            ""            ""
        "Граффити 20"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "19"         ""            ""            ""            ""
        "Граффити 21"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "20"         ""            ""            ""            ""
        "Граффити 22"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "21"         ""            ""            ""            ""
        "Граффити 23"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "22"         ""            ""            ""            ""
        "Граффити 24"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "23"         ""            ""            ""            ""
        "Граффити 25"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "24"         ""            ""            ""            ""
        "Граффити 26"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "25"         ""            ""            ""            ""
        "Граффити 27"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "26"         ""            ""            ""            ""
        "Граффити 28"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "27"         ""            ""            ""            ""
        "Граффити 29"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "28"         ""            ""            ""            ""
        "Граффити 30"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "29"         ""            ""            ""            ""
        "Граффити 31"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "30"         ""            ""            ""            ""
        "Граффити 32"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "31"         ""            ""            ""            ""
        "Граффити 33"            "models/AZ/LW_Pack_GR1News1.mdl"            "65, 60"            ""            ""                "32"         ""            ""            ""            ""
        "Граффити 34"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "0"         ""            ""            ""            ""
        "Граффити 35"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "1"         ""            ""            ""            ""
        "Граффити 36"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "2"         ""            ""            ""            ""
        "Граффити 37"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "3"         ""            ""            ""            ""
        "Граффити 38"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "4"         ""            ""            ""            ""
        "Граффити 39"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "5"         ""            ""            ""            ""
        "Граффити 40"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "6"         ""            ""            ""            ""
        "Граффити 41"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "7"         ""            ""            ""            ""
        "Граффити 42"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "8"         ""            ""            ""            ""
        "Граффити 43"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "9"         ""            ""            ""            ""
        "Граффити 44"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "10"         ""            ""            ""            ""
        "Граффити 45"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "11"         ""            ""            ""            ""
        "Граффити 46"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "12"         ""            ""            ""            ""
        "Граффити 47"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "13"         ""            ""            ""            ""
        "Граффити 48"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "14"         ""            ""            ""            ""
        "Граффити 49"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "15"         ""            ""            ""            ""
        "Граффити 50"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "16"         ""            ""            ""            ""
        "Граффити 51"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "17"         ""            ""            ""            ""
        "Граффити 52"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "18"         ""            ""            ""            ""
        "Граффити 53"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "19"         ""            ""            ""            ""
        "Граффити 54"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "20"         ""            ""            ""            ""
        "Граффити 55"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "21"         ""            ""            ""            ""
        "Граффити 56"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "22"         ""            ""            ""            ""
        "Граффити 57"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "23"         ""            ""            ""            ""
        "Граффити 58"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "24"         ""            ""            ""            ""
        "Граффити 59"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "25"         ""            ""            ""            ""
        "Граффити 60"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "26"         ""            ""            ""            ""
        "Граффити 61"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "27"         ""            ""            ""            ""
        "Граффити 62"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "28"         ""            ""            ""            ""
        "Граффити 63"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "29"         ""            ""            ""            ""
        "Граффити 64"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "30"         ""            ""            ""            ""
        "Граффити 65"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "31"         ""            ""            ""            ""
        "Граффити 66"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "32"         ""            ""            ""            ""
        "Граффити 67"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "33"         ""            ""            ""            ""
        "Граффити 68"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "34"         ""            ""            ""            ""
        "Граффити 69"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "35"         ""            ""            ""            ""
        "Граффити 70"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            """                36"         ""            ""            ""            ""
        "Граффити 71"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "37"         ""            ""            ""            ""
        "Граффити 72"            "sprites/AZ/CsgoGraffiti.spr"                "65, 60"            ""            ""                "38"         ""            ""            ""            ""
        "Граффити 73"            "sprites/AZ/myatka2.spr"                    "65, 60"            "1"            "10"            ""             ""            ""            ""            ""
        "Граффити 74"            "models/AZ/the_laughing_man.mdl"            "65, 60"            "1"            ""                ""            ""            ""            ""            ""
        "Граффити 75"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "0"            ""            ""            ""
        "Граффити 76"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "1"            ""            ""            ""
        "Граффити 77"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "2"            ""            ""            ""
        "Граффити 78"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "3"            ""            ""            ""
        "Граффити 79"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "4"            ""            ""            ""
        "Граффити 80"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "5"            ""            ""            ""
        "Граффити 81"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "6"            ""            ""            ""
        "Граффити 82"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "7"            ""            ""            ""
        "Граффити 82"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "8"            ""            ""            ""
        "Граффити 84"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "9"            ""            ""            ""
        "Граффити 85"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "10"        ""            ""            ""
        "Граффити 86"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "11"        ""            ""            ""
        "Граффити 87"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "12"        ""            ""            ""
        "Граффити 88"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "13"        ""            ""            ""
        "Граффити 89"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "14"        ""            ""            ""
        "Граффити 90"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "15"        ""            ""            ""
        "Граффити 91"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "16"        ""            ""            ""
        "Граффити 92"            "models/AZ/spray_1.mdl"                        "65, 60"            ""            ""                ""             "17"        ""            ""            ""
        "Граффити 93"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "0"            ""            ""            ""
        "Граффити 94"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "1"            ""            ""            ""
        "Граффити 95"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "2"            ""            ""            ""
        "Граффити 96"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "3"            ""            ""            ""
        "Граффити 97"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "4"            ""            ""            ""
        "Граффити 98"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "5"            ""            ""            ""
        "Граффити 99"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "6"            ""            ""            ""
        "Граффити 100"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "7"            ""            ""            ""
        "Граффити 101"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "8"            ""            ""            ""
        "Граффити 102"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "9"            ""            ""            ""
        "Граффити 103"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "10"        ""            ""            ""
        "Граффити 104"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "11"        ""            ""            ""
        "Граффити 105"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "12"        ""            ""            ""
        "Граффити 106"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "13"        ""            ""            ""
        "Граффити 107"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "14"        ""            ""            ""
        "Граффити 108"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "15"        ""            ""            ""
        "Граффити 109"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "16"        ""            ""            ""
        "Граффити 110"            "models/AZ/spray_2.mdl"                        "65, 60"            ""            ""                ""             "17"        ""            ""            ""
        "Граффити 111"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "0"            ""            ""            ""
        "Граффити 112"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "1"            ""            ""            ""
        "Граффити 113"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "2"            ""            ""            ""
        "Граффити 114"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "3"            ""            ""            ""
        "Граффити 115"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "4"            ""            ""            ""
        "Граффити 116"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "5"            ""            ""            ""
        "Граффити 117"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "6"            ""            ""            ""
        "Граффити 118"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "7"            ""            ""            ""
        "Граффити 119"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "8"            ""            ""            ""
        "Граффити 120"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "9"            ""            ""            ""
        "Граффити 121"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "10"        ""            ""            ""
        "Граффити 122"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "11"        ""            ""            ""
        "Граффити 123"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "12"        ""            ""            ""
        "Граффити 124"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "13"        ""            ""            ""
        "Граффити 125"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "14"        ""            ""            ""
        "Граффити 126"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "15"        ""            ""            ""
        "Граффити 127"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""            "16"        ""            ""            ""
        "Граффити 128"            "models/AZ/spray_3.mdl"                        "65, 60"            ""            ""                ""             "17"        ""            ""            ""
    }

    [Граффити | Звуки рисования]
    {
;        "Название"                "Путь к звуку"            "Флаг"
;        "Пример"                "name.wav"                "a"
;        "Пример"                "sound/name.mp3"        "a"

        "Нету"                    ""                        ""
        "Стандарт"                "player/sprayer.wav"     ""
        "Звук 1"                "AZ/Graffiti_1.wav"     ""
        "Звук 2"                "AZ/Graffiti_2.wav"     ""
        "Звук 3"                "AZ/Graffiti_3.wav"     ""
    }

    [Граффити | Цвета]
    {
;        "Название"                "Красный, Зеленый, Синий"        "Флаг"
;        "Пример"                "255, 120, 0"                    "a"

        "Нету"                    "0, 0, 0"                        ""
        "Белый"                    "255, 255, 255"                 ""
        "Зелёный"                "0, 255, 0"                     ""
        "Красный"                "255, 0, 0"                     ""
        "Жёлтый"                "255, 255, 0"                     ""
        "Оранжевый"                "255, 69, 0"                     ""
        "Голубой"                "0, 255, 255"                     ""
        "Синий"                    "0, 0, 255"                     ""
        "Фиолетовый"            "128, 0, 128"                     ""
    }
}

Создание своего спрайта
Вам потребуется: Paint.Net и расширение к нему
Далее делаем как по видео



p.s. 1) Не делайте слишком большой размер кадров спрайта. 256х256 - нормальный вариант. Иначе у вас получится толстый файл > 5mb
2) Избегайте большого кол-ва кадров. Если у вас в gif > 40 кадров, тогда выбирайте кадры с пропуском по N файлов, дабы уменьшить их количество
Сверху Снизу