не работает FlyingArmourys

IIuToH

Только чтение
Заблокированные
Регистрация
5 Авг 2018
Сообщения
143
Симпатии
0
Предупреждения
260
OS
Linux
Amx Mod X
AMXX 1.9.0
Билд
Protocol version 48 Exe version 1.1.2.7/Stdio (cstrike) ReHLDS version: 3.7.0.694-dev Build date: 15:16:45 Mar 22 2020 (2171) Build from: https://github.com/dreamstalker/rehlds/commit/07539e2
ReGamedll
ReGameDLL version: 5.14.0.456-dev Build date: 12:02:14 Mar 13 2020
Metamod
Metamod v1.21p37 2013/05/30 (5:13) by Will Day http://www.metamod.org/ Patch: Metamod-P (mm-p) v37 by Jussi Kivilinna
Meta модули
Код:
[ 1] SafeNameAndChat RUN
[ 2] Reunion RUN
[ 3] ReAuthCheck RUN
[ 4] VoiceTranscoder RUN
[ 5] AMX Mod X RUN
[ 6] Rechecker RUN
[ 7] WHBlocker RUN
[ 8] FakeMeta RUN
[ 9] Ham Sandwich RUN
[10] CSX RUN
[11] CStrike RUN
[12] Engine RUN
[13] ReAPI RUN
[14] GeoIP RUN
[15] Fun RUN
Плагины
Код:
[ 1] Admin Base 1.9.0.5263 AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.8.2 AMXX Dev Team admincmd.amxx running
[ 3] Slots Reservation 1.9.0.5263 AMXX Dev Team adminslots.amxx running
[ 4] Multi-Lingual System 1.9.0.5263 AMXX Dev Team multilingual.am running
[ 5] Commands Menu 1.9.0.5263 AMXX Dev Team cmdmenu.amxx running
[ 6] Players Menu 1.8.2 AMXX Dev Team plmenu.amxx running
[ 7] Maps Menu 1.9.0.5263 AMXX Dev Team mapsmenu.amxx running
[ 8] Admin Chat 1.9.0.5263 AMXX Dev Team adminchat.amxx running
[ 9] Anti Flood 1.9.0.5263 AMXX Dev Team antiflood.amxx running
[ 10] Scrolling Message 1.9.0.5263 AMXX Dev Team scrollmsg.amxx running
[ 11] Info. Messages 1.9.0.5263 AMXX Dev Team imessage.amxx running
[ 12] Admin Votes 1.9.0.5263 AMXX Dev Team adminvote.amxx running
[ 13] NextMap 1.9.0.5263 AMXX Dev Team nextmap.amxx running
[ 14] TimeLeft 1.9.0.5263 AMXX Dev Team timeleft.amxx running
[ 15] Pause Plugins 1.9.0.5263 AMXX Dev Team pausecfg.amxx running
[ 16] Stats Configuration 1.9.0.5263 AMXX Dev Team statscfg.amxx running
[ 17] StatsX 1.9.0.5263 AMXX Dev Team statsx.amxx running
[ 18] Center Msg Fix 0.4 mx?! CenterMsgFix.am running
[ 19] Server AMXMODMENU [INI 1.0 Leo_[BH] amxmodmenu.amxx running
[ 20] [ReAPI] Ghost after de 0.0.1 steelzzz ghost.amxx running
[ 21] Rock to Ban 1.02 Safety1st rock2ban.amxx running
[ 22] Add HP on Gren Multi 1.0 SmirnoffBG grenade_bonus.a running
[ 23] VIP RBS 15.03.25 SKAJIbnEJIb vip_rbs.amxx running
[ 24] Custom Smoke 1.07 bionext custom_smoke.am running
[ 25] Night DeathMatch 15.02.07 ShaTalKiN night_dm.amxx running
[ 26] Adverts 1.0 pUzzlik adverts_message running
[ 27] Killer Bonus 0.1 def4u1t FirstKiller.amx running
[ 28] Kills Counter 1.0 Safety1st killscounter.am running
[ 29] Remove Entity 1.0 6u3oH remove_entity.a running
[ 30] CSS Flashlight 2.0 schmurgel1983 css_flashlight2 running
[ 31]Flying Armourys 0.0.2 Vaqtincha FlyingArmourys. running
[ 32]ap Manager: Core 3.0.4 Mistrick map_manager_cor running
[ 33]Map Manager: Scheduler 0.1.2 Mistrick map_manager_sch running
[ 34]Map Manager: Rtv 0.1.0 Mistrick map_manager_rtv running
[ 35]Map Manager: Nominatio 0.1.0 Mistrick map_manager_nom running
[ 36]ap Manager: BlockList 0.0.3 Mistrick map_manager_blo running
[ 37]ap Manager: Online so 0.0.2 Mistrick map_manager_onl running
[ 38]ap Manager: Effects 0.0.8 Mistrick map_manager_eff running
[ 39]ap Manager: Advanced 0.0.5 Mistrick map_manager_adv running
Amxx Модули
Код:
FakeMeta 1.9.0.5263 AMX Mod X Dev Team running
Ham Sandwich 1.9.0.5263 AMX Mod X Dev Team running
CSX 1.9.0.5263 AMX Mod X Dev Team running
CStrike 1.9.0.5263 AMX Mod X Dev Team running
Engine 1.9.0.5263 AMX Mod X Dev Team running
ReAPI 5.12.0.192 Asmodai & s1lent running
nVault 1.9.0.5263 AMX Mod X Dev Team running
GeoIP 1.9.0.5263 AMX Mod X Dev Team running
Fun 1.9.0.5263 AMX Mod X Dev Team running
Ошибка
Код:
не работает плагин
логи чистые
Исходник
Код:
Код:
// Copyright © 2017 Vaqtincha

/**■■■■■■■■■■■■■■■■■■■■■■■■■■■■ CONFIG START ■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/

#define RANDOM_GLOW_SHELL
#define ROTATE_SPEED             10
#define FLY_UP                     4
#define UPDATE_DELAY            2.0

#define ADD_Z_POS                 30

/**■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ CONFIG END ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/

enum coord_e { Float:X, Float:Y, Float:Z }

new const Float:g_vecColors[][3] =
{
    {0.0, 127.0, 255.0},     // blue
    {0.0, 255.0, 127.0},     // green
    {255.0, 0.0, 0.0},         // red
    {255.0, 127.0, 0.0},     // orange
    {127.0, 0.0, 255.0},     // purple
    {255.0, 100.0, 150.0}, // pink
    {255.0, 255.0, 255.0},  // white
    {255.0, 155.0, 55.0}, //
    {0.0, 255.0, 255.0},     //
    {0.0, 255.0, 0.0},     //
    {0.0, 0.0, 100.0}     //
}

#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#if ROTATE_SPEED < 1
    #error the minimum value of "ROTATE_SPEED" shall not be less than 1
#endif
#if ROTATE_SPEED > 100
    #error the maximum value of the "ROTATE_SPEED" can not be more than 100
#endif

#define SET_ORIGIN(%1,%2)         engfunc(EngFunc_SetOrigin, %1, %2)


public plugin_init()
{
    register_plugin("Flying Armourys", "0.0.2", "Vaqtincha")

    RegisterHam(Ham_CS_Restart, "armoury_entity", "CArmoury_Restart", .Post = true)
    RegisterHam(Ham_Think, "armoury_entity", "CArmoury_Think", .Post = true)
  
    new pArmoury = FM_NULLENT
    while((pArmoury = engfunc(EngFunc_FindEntityByString, pArmoury, "classname", "armoury_entity")))
    {
        set_pev(pArmoury, pev_movetype, MOVETYPE_NOCLIP)

        ExecuteHamB(Ham_CS_Restart, pArmoury)
    }
}

public CArmoury_Think(const pArmoury)
{
    if(pArmoury <= 0)
        return

    if(pev(pArmoury, pev_effects) & EF_NODRAW)
        return

    // from https://github.com/s1lentq/ReGameDLL_CS/blob/major-patch/regamedll/dlls/addons/item_airbox.cpp
    static Float:vecVelocity[coord_e], Float:fFlyUp
  
    pev(pArmoury, pev_maxspeed, fFlyUp)
  
    vecVelocity[Z] = fFlyUp

    set_pev(pArmoury, pev_velocity, vecVelocity)
    set_pev(pArmoury, pev_maxspeed, -fFlyUp)

    set_pev(pArmoury, pev_nextthink, get_gametime() + UPDATE_DELAY) 
}

public CArmoury_Restart(const pArmoury)
{
    if(pArmoury <= 0)
        return
  
    new Float:vecOrigin[coord_e], Float:vecAngles[coord_e], Float:vecAvelocity[coord_e]
  
    pev(pArmoury, pev_origin, vecOrigin)
    vecOrigin[Z] += ADD_Z_POS.0
    SET_ORIGIN(pArmoury, vecOrigin)
  
    vecAngles[X] -= 90.0
    vecAngles[Y] += random_float(-180.0, 180.0)
    set_pev(pArmoury, pev_angles, vecAngles)
  
    vecAvelocity[Z] = ROTATE_SPEED.0 * 10.0
    set_pev(pArmoury, pev_avelocity, vecAvelocity)

    set_pev(pArmoury, pev_maxspeed, FLY_UP.0)

#if defined RANDOM_GLOW_SHELL
    // new Float:vecColor[3]
    // vecColor[0] = random_float(10.0, 200.0) + 55.0
    // vecColor[1] = random_float(10.0, 200.0) + 55.0
    // vecColor[2] = random_float(10.0, 200.0) + 55.0
  
    // set_rendering(pArmoury, kRenderFxGlowShell, vecColor, 20.0)
    set_rendering(pArmoury, kRenderFxGlowShell, g_vecColors[random(sizeof(g_vecColors))], 15.0)
#endif

    set_pev(pArmoury, pev_nextthink, get_gametime() + UPDATE_DELAY)
}

stock set_rendering(index, fx = kRenderFxNone, Float:color[3] = {255.0, 255.0, 255.0}, Float:amount = 16.0)
{
    set_pev(index, pev_renderfx, fx)
    set_pev(index, pev_rendercolor, color)
    set_pev(index, pev_renderamt, amount)
}
утро доброе
ребят, что то плагин не хочет работать от Vaqtincha
компилировал для аmx 1.9.0 и на более ранних версиях
 

Vaqtincha

aggressive
Разработчик
Скриптер
Регистрация
28 Янв 2018
Сообщения
963
Симпатии
685
Пол
Мужской
он работает на картах где есть "armoury_entity"
 

Vaqtincha

aggressive
Разработчик
Скриптер
Регистрация
28 Янв 2018
Сообщения
963
Симпатии
685
Пол
Мужской
Сверху Снизу