Can somebody help me adapt AdminFreeLook module for rehlds?

Сообщения
16
Реакции
0
Ошибка
not working
ОС
Linux
Amx Mod X
1.9
Билд
2228
ReGamedll
5.17.0.466-dev
Версия Metamod
v1.3.0.128
Список метамодулей
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0 ini Start ANY
[ 2] Reunion RUN - reunion_mm_i386.so v0.1.0.135 ini Start Never
[ 3] VoiceTranscoder RUN - voicetranscoder_mm_i386.so v2017RC5 ini ANY ANY
[ 4] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 5] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 6] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 7] Fun RUN - fun_amxx_i386.so v1.9.0 pl1 ANY ANY
[ 8] Engine RUN - engine_amxx_i386.so v1.9.0 pl1 ANY ANY
[ 9] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0 pl1 ANY ANY
[10] GeoIP RUN - geoip_amxx_i386.so v1.10.0.5399 pl1 ANY ANY
[11] CStrike RUN - cstrike_amxx_i386.so v1.9.0 pl1 ANY ANY
[12] CSX RUN - csx_amxx_i386.so v1.9.0 pl1 ANY ANY
[13] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0 pl1 ANY ANY
[14] ReAPI RUN - reapi_amxx_i386.so v5.14.0.195
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] IceNode-Shield 1.5b FioriGinal.Ro IceNode-Shield. running
[ 2] Admin Base 1.9.0 AMXX Dev Team admin.amxx running
[ 3] Admin Commands 1.9.0 AMXX Dev Team admincmd.amxx running
[ 4] Admin Help 1.9.0 AMXX Dev Team adminhelp.amxx running
[ 5] Slots Reservation 1.9.0 AMXX Dev Team adminslots.amxx running
[ 6] Multi-Lingual System 1.9.0 AMXX Dev Team multilingual.am running
[ 7] Menus Front-End 1.9.0 AMXX Dev Team menufront.amxx running
[ 8] Commands Menu 1.9.0 AMXX Dev Team cmdmenu.amxx running
[ 9] Players Menu 1.9.0 AMXX Dev Team plmenu.amxx running
[ 10] Maps Menu 1.9.0 AMXX Dev Team mapsmenu.amxx running
[ 11] Plugin Menu 1.9.0 AMXX Dev Team pluginmenu.amxx running
[ 12] Admin Chat 1.9.0 AMXX Dev Team adminchat.amxx running
[ 13] Anti Flood 1.9.0 AMXX Dev Team antiflood.amxx running
X[ 14] Ping Faker 1.0 Hattrick ping.amxx running [ 15] Scrolling Message 1.9.0 AMXX Dev Team scrollmsg.amxx running
[ 16] Info. Messages 1.9.0 AMXX Dev Team imessage.amxx running
[ 17] Admin Votes 1.9.0 AMXX Dev Team adminvote.amxx running
[ 18] NextMap 1.9.0 AMXX Dev Team nextmap.amxx running
[ 19] Nextmap Chooser 1.9.0 AMXX Dev Team mapchooser.amxx running
[ 20] TimeLeft 1.9.0 AMXX Dev Team timeleft.amxx running
[ 21] Pause Plugins 1.9.0 AMXX Dev Team pausecfg.amxx running
[ 22] Stats Configuration 1.9.0 AMXX Dev Team statscfg.amxx running
[ 23] StatsX 1.9.0 AMXX Dev Team statsx.amxx running
[ 24] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
24 plugins, 24 running
Автор плагина
Arkshine
Версия плагина
1.5.4
Исходный код
https://github.com/Arkshine/AdminFreeLook/releases/tag/1.5.4
Hello guys!
I'm sorry if i bother you with my thread
I need this plugin to work on ReHlds. It's the only plugin i could find who has "amx_adminfreelookmode" function.
Or a similar plugin who block anybody watching first person except the admins with flag "d"
 
Сообщения
673
Реакции
242
Помог
11 раз(а)
Последнее редактирование модератором:
Сообщения
673
Реакции
242
Помог
11 раз(а)
Покупка | Dev-CS.ru


Код:
#include <amxmodx>
#include <reapi>



public plugin_init()
{
    RegisterHookChain(RG_CBasePlayer_Observer_SetMode, "HC_CBasePlayer_Observer_SetMode");
}



public HC_CBasePlayer_Observer_SetMode(pId, iMode)
{
    if(iMode != OBS_IN_EYE)
    {
        return HC_CONTINUE;
    }
    if(get_user_flags(pId) & ADMIN_BAN)
    {
        return HC_CONTINUE;
    }
    SetHookChainReturn(ATYPE_INTEGER, false);
    return HC_SUPERCEDE;
}
17 Авг 2022
GitHub - s1lentq/ReFreeLook: модуль AMX Mod X
 
Сообщения
16
Реакции
0
Покупка | Dev-CS.ru


Код:
#include <amxmodx>
#include <reapi>



public plugin_init()
{
    RegisterHookChain(RG_CBasePlayer_Observer_SetMode, "HC_CBasePlayer_Observer_SetMode");
}



public HC_CBasePlayer_Observer_SetMode(pId, iMode)
{
    if(iMode != OBS_IN_EYE)
    {
        return HC_CONTINUE;
    }
    if(get_user_flags(pId) & ADMIN_BAN)
    {
        return HC_CONTINUE;
    }
    SetHookChainReturn(ATYPE_INTEGER, false);
    return HC_SUPERCEDE;
}
17 Авг 2022
GitHub - s1lentq/ReFreeLook: модуль AMX Mod X
It works except that if a player with first person as default spec mode joins from another server and selects spectator or any them then dies the server will spawn him after death stuck and with no weapons
Image here --> https://imgur.com/a/xYkpWg9
 
Сообщения
673
Реакции
242
Помог
11 раз(а)
It works except that if a player with first person as default spec mode joins from another server and selects spectator or any them then dies the server will spawn him after death stuck and with no weapons
Image here --> https://imgur.com/a/xYkpWg9

это не официальный релиз, написал на скорую руку, особо не вникал на релиз, просто скинул как пример, обратись Покупка | Dev-CS.ru или используй модуль GitHub - s1lentq/ReFreeLook: модуль AMX Mod X
 
Сообщения
16
Реакции
0
Nope, that's not what i needed, i need the specific feature that allows me to block first person and force spectators into third person mode.
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу