Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
- Ошибка
-
L 06/11/2023 - 16:50:39: [AMXX] Plugin "JailBreak_Cuff.amxx" failed to load: Plugin uses an unknown function (name "jbe_get_user_team") - check your modules.ini.
- ОС
- Windows
- Amx Mod X
-
AMX Mod X version 1.9 - build 5294
- Билд
-
BUILD 3244 SERVER (0 CRC)
Server # 1
Couldn't open file overviews/jail_crime.txt. Using default values for overiew mode.
Couldn't open file overviews/jail_crime.txt. Using default values for overiew mode.
] version
Protocol version 48
Exe version 1.1.2.6 (cstrike)
Exe build: 16:05:41 Jun 15 2009
- ReGamedll
-
5.21.0.576
- Версия Metamod
-
Metamod-r version 1.3.0.131
- Список метамодулей
-
Currently running plugins:
[ 1] SafeNameAndChat, v1.1, 2017.02.01, by WPMG.PRoSToC0der, see http://snac.wpmg.ru/
[ 2] Reunion, v0.1.92d, 2021-01-07, by The Legion, see
[ 3] ReAuthCheck, v0.1.6, 2017-03-08, by Adidasman, see http://www.dedicated-server.ru/
[ 4] VoiceTranscoder, v2017RC3, 2017.02.12, by WPMG.PRoSToC0der, see http://vtc.wpmg.ru/
[ 5] AMX Mod X, v1.9.0.5294, Jul 12 2021, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 6] Rechecker, v2.7, Nov 9 2020, by s1lent, see http://www.dedicated-server.ru/
[ 7] ReSemiclip, v2.3.9, 13/02/17, by s1lent & Adidasman, see http://www.dedicated-server.ru/
[ 8] WHBlocker, v1.5.697, 2020-02-05, by s1lent, see http://www.aghl.ru/
[ 9] MySQL, v1.9.0.5294, Jul 12 2021, by AMX Mod X Dev Team, see http://www.amxmodx.org/
[ 10] Fun, v1.9.0.5294, Jul 12 2021, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 11] Engine, v1.9.0.5294, Jul 12 2021, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 12] FakeMeta, v1.9.0.5294, Jul 12 2021, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 13] CStrike, v1.9.0.5294, Jul 12 2021, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 14] CSX, v1.9.0.5294, Jul 12 2021, by AMX Mod X Dev Team, see http://www.amxmodx.org/
[ 15] Ham Sandwich, v1.9.0.5294, Jul 12 2021, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 16] ReAimDetector, v0.2.2, 2018-02-06, by ReHLDS Team, see http://www.dedicated-server.ru/
[ 17] ReAPI, v5.22.0.254-dev, Sep 19 2022, by Asmodai & s1lent, see https://github.com/s1lentq/r
- Список плагинов
-
; AMX Mod X plugins
; Admin Base - Always one has to be activated
admin.amxx ; admin base (required for any admin-related)
;admin_sql.amxx ; admin base - SQL version (comment admin.amxx)
; Basic
admincmd.amxx ; basic admin console commands
adminhelp.amxx ; help command for admin console commands
adminslots.amxx ; slot reservation
multilingual.amxx ; Multi-Lingual management
; Menus
menufront.amxx ; front-end for admin menus
cmdmenu.amxx ; command menu (speech, settings)
plmenu.amxx ; players menu (kick, ban, client cmds.)
;telemenu.amxx ; teleport menu (Fun Module required!)
mapsmenu.amxx ; maps menu (vote, changelevel)
pluginmenu.amxx ; Menus for commands/cvars organized by plugin
; Chat / Messages
adminchat.amxx ; console chat commands
antiflood.amxx ; prevent clients from chat-flooding the server
scrollmsg.amxx ; displays a scrolling message
imessage.amxx ; displays information messages
adminvote.amxx ; vote commands
; Map related
nextmap.amxx ; displays next map in mapcycle
mapchooser.amxx ; allows to vote for next map
timeleft.amxx ; displays time left on map
; Configuration
pausecfg.amxx ; allows to pause and unpause some plugins
statscfg.amxx ; allows to manage stats plugins via menu and commands
; Counter-Strike
;restmenu.amxx ; restrict weapons menu
statsx.amxx ; stats on death or round end (CSX Module required!)
;miscstats.amxx ; bunch of events announcement for Counter-Strike
;stats_logging.amxx ; weapons stats logging (CSX Module required!)
; Custom - Add 3rd party plugins here
reaimdetector.amxx ; AmxModX module for ReHLDS & ReGameDLL, which detecting aim and nospread
weapon_icon.amxx ; display your current weapon as an icon in your hud
lie_flat.amxx ; оружия лежат правильна
; Главный мод
Jb_Core.amxx debug
; Ножи
Jb_Knife_Hand.amxx debug
Jb_Knife_Baton.amxx debug
; Саймон
Jb_SimonMenuItem_Doors.amxx debug
Jb_SimonMenuItem_Counter.amxx debug
Jb_SimonMenuItem_WeaponSearch.amxx debug
Jb_SimonMenuItem_FreeDay.amxx debug
Jb_SimonMenuItem_PunishGuard.amxx debug
Jb_SimonMenuItem_PrisonerCure.amxx debug
Jb_SimonMenuItem_MiniGames.amxx debug
Jb_SimonMenuItem_TransferSimon.amxx debug
Jb_SimonMenuItem_Advantages.amxx debug
; Последний зэк
; Дополнения
Jb_Addon_Restart.amxx debug
Jb_Addon_MainMenu.amxx debug
Jb_Addon_PlayerModel.amxx debug
Jb_Addon_CheckCompatibility.amxx debug
; Сохранение
Jb_Save_MySQL.amxx debug
JailBreak_Cuff.amxx
- Автор плагина
- Ragamafona (Nikolay Gaus)
- Версия плагина
- 0.0.2
- Исходный код
-
/* ----------------------------------------------------------------------------
Сделано специально для RAGASHOP.
Еще больше плагинов тут - vk.com/ragashop
Связь с автором - vk.com/felhalas
Плагин: Наручники для JailBreak
Описание: Сковывает руки арестанту что не позволяет ему использовать оружие.
---------------------------------------------------------------------------- */
new const PVA[][] = { "[RAGASHOP] JailBreak Cuff", "0.0.2", "Ragamafona" };
#define JB_TAG:: jbe // Префикс мода для разных сборок (jbe,jbm,jbs и тд)
const CUFF_DISTANCE = 150; // Дистанция для сковывания арестанта в наручи
const CUFF_MAX_COUNT = 5;
new const MODEL_CUFF_V[] = "models/ragashop/v_cuff.mdl";
new const MODEL_CUFF_P[] = "models/ragashop/p_cuff.mdl";
/* ---------------------------------------------------------------------------- */
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#define rs_is_user_chief JB_TAG::_is_user_chief
#define rs_get_user_team JB_TAG::_get_user_team
native rs_is_user_chief( pPlayer );
native rs_get_user_team( pPlayer );
/* ---------------------------------------------------------------------------- */
#define IsValidItem(%0) (%0 > 0 && pev_valid(%0) == pdata_safe)
#define Menu_SetMenuName(%0) iLen = formatex(strMenu, charsmax(strMenu), %0)
#define Menu_AddMenuStr(%0) iLen += formatex(strMenu[iLen], charsmax(strMenu) - iLen, %0)
/* ---------------------------------------------------------------------------- */
new bool: g_bPlayerCuffed[ 33 ];
new g_iPlayersCuffed;
const pdata_safe = 2;
const m_pPlayer = 41;
const m_iId = 43;
const m_pActiveItem = 373;
const offset_linux_weapon = 4;
const offset_linux_player = 5;
/* ---------------------------------------------------------------------------- */
public plugin_init() {
register_plugin( PVA[ 0 ], PVA[ 1 ], PVA[ 2 ] );
register_dictionary( "rs_jail_cuff.txt" );
new const strWeaponName[][] =
{
"weapon_knife",
"weapon_p228", "weapon_scout", "weapon_hegrenade", "weapon_xm1014", "weapon_mac10", "weapon_aug",
"weapon_smokegrenade", "weapon_elite", "weapon_fiveseven", "weapon_ump45", "weapon_sg550",
"weapon_galil", "weapon_famas", "weapon_usp", "weapon_flashbang","weapon_glock18", "weapon_awp",
"weapon_mp5navy", "weapon_m249", "weapon_m3", "weapon_m4a1", "weapon_tmp", "weapon_g3sg1",
"weapon_deagle", "weapon_sg552", "weapon_ak47", "weapon_p90"
};
for( new iCase = 0 ; iCase < sizeof( strWeaponName ) ; iCase++ )
RegisterHam( Ham_Item_Deploy, strWeaponName[ iCase ], "CWeapon__Deploy_Post", .Post = true );
RegisterHam( Ham_Killed, "player", "CPlayer__Killed_Post", .Post = true );
register_event( "HLTV", "CEvent__RoundStart", "a", "1=0", "2=0" );
register_clcmd( "say /cuff", "Open_MenuCuff" );
register_menucmd( register_menuid( "OpenMenu_Cuff" ), (1<<0|1<<9), "CloseMenu_Cuff" );
}
public plugin_precache() {
precache_model( MODEL_CUFF_V );
precache_model( MODEL_CUFF_P );
}
/* ---------------------------------------------------------------------------- */
public Open_MenuCuff( pPlayer ) {
if( !is_user_alive( pPlayer ) )
return PLUGIN_HANDLED;
if( !rs_is_user_chief( pPlayer ) )
{
UTIL_SendChat( pPlayer, "%L", pPlayer, "RS_CHAT_ONLY_CHIEF" );
return PLUGIN_HANDLED;
}
new strMenu[ 256 ], Menu_SetMenuName( "%L^n", pPlayer, "RS_MENU_TITLE" );
if( g_iPlayersCuffed > 0 )
Menu_AddMenuStr( "%L^n", pPlayer, "RS_MENU_CUFF_COUNT", g_iPlayersCuffed );
Menu_AddMenuStr( "^n%L^n", pPlayer, "RS_MENU_CUFF_SET" );
Menu_AddMenuStr( "%L^n^n", pPlayer, "RS_MENU_CUFF_SET_INFO" );
Menu_AddMenuStr( "%L^n", pPlayer, "RS_MENU_EXIT" );
return show_menu( pPlayer, (1<<0|1<<9), strMenu, -1, "OpenMenu_Cuff" );
}
public CloseMenu_Cuff( pPlayer, iKey ) {
if( !is_user_alive( pPlayer ) )
return PLUGIN_HANDLED;
if( !rs_is_user_chief( pPlayer ) )
{
UTIL_SendChat( pPlayer, "%L", pPlayer, "RS_CHAT_ONLY_CHIEF" );
return PLUGIN_HANDLED;
}
if( iKey == 9 )
return PLUGIN_HANDLED;
new iTarget; get_user_aiming( pPlayer, iTarget, _, CUFF_DISTANCE );
if( !is_user_alive( iTarget ) || rs_get_user_team( iTarget ) != 1 )
return Open_MenuCuff( pPlayer );
if( g_bPlayerCuffed[ iTarget ] )
{
g_iPlayersCuffed--;
g_bPlayerCuffed[ iTarget ] = false;
new iItem; iItem = get_pdata_cbase( iTarget, m_pActiveItem, offset_linux_player );
if( IsValidItem( iItem ) )
ExecuteHamB( Ham_Item_Deploy, iItem );
}
else
{
if( g_iPlayersCuffed >= CUFF_MAX_COUNT )
{
UTIL_SendChat( pPlayer, "%L", pPlayer, "RS_CHAT_CUFF_LIMIT" );
return Open_MenuCuff( pPlayer );
}
g_iPlayersCuffed++;
g_bPlayerCuffed[ iTarget ] = true;
new iItem; iItem = get_pdata_cbase( iTarget, m_pActiveItem, offset_linux_player );
if( IsValidItem( iItem ) )
{
if( get_pdata_int( iItem, m_iId, offset_linux_weapon ) == CSW_KNIFE )
ExecuteHamB( Ham_Item_Deploy, iItem );
else
engclient_cmd( iTarget, "weapon_knife" );
}
}
new strName[ 2 ][ 32 ];
get_user_name( pPlayer, strName[ 0 ], charsmax( strName[] ) );
get_user_name( iTarget, strName[ 1 ], charsmax( strName[] ) );
//
// LANG_PLAYER - был найден баг что игрокам выводилось сообщение не с выбранным ими языком.
//
// UTIL_SendChat( 0, "%L", LANG_PLAYER, "RS_CHAT_CUFF_SET", strName[ 0 ], LANG_PLAYER, g_bPlayerCuffed[ iTarget ] ? "RS_CHAT_CUFF_ADD" : "RS_CHAT_CUFF_DEL", strName[ 1 ] );
//
new aPlayers[ 32 ], iPlayersCount, iPlayer;
get_players( aPlayers, iPlayersCount, "ch" );
for( --iPlayersCount ; iPlayersCount >= 0 ; iPlayersCount-- )
{
iPlayer = aPlayers[ iPlayersCount ];
UTIL_SendChat( iPlayer, "%L", iPlayer, "RS_CHAT_CUFF_SET", strName[ 0 ], iPlayer, g_bPlayerCuffed[ iTarget ] ? "RS_CHAT_CUFF_ADD" : "RS_CHAT_CUFF_DEL", strName[ 1 ] );
}
return Open_MenuCuff( pPlayer );
}
public CWeapon__Deploy_Post( iItem ) {
new pPlayer; pPlayer = get_pdata_cbase( iItem, m_pPlayer, offset_linux_weapon );
if( g_bPlayerCuffed[ pPlayer ] )
{
if( get_pdata_int( iItem, m_iId, offset_linux_weapon ) != CSW_KNIFE )
engclient_cmd( pPlayer, "weapon_knife" );
else
{
set_pev( pPlayer, pev_viewmodel2, MODEL_CUFF_V );
set_pev( pPlayer, pev_weaponmodel2, MODEL_CUFF_P );
}
}
}
public client_disconnect( pPlayer )
CPlayer__Killed_Post( pPlayer );
public CPlayer__Killed_Post( pVictim ) {
if( g_bPlayerCuffed[ pVictim ] )
{
g_iPlayersCuffed--;
g_bPlayerCuffed[ pVictim ] = false;
}
}
public CEvent__RoundStart() {
g_iPlayersCuffed = 0;
arrayset( g_bPlayerCuffed, false, sizeof( g_bPlayerCuffed ) );
}
stock UTIL_SendChat( pPlayer, const strText[], any:... ) {
new aPlayers[ MAX_PLAYERS ], iPlayersCount; iPlayersCount = 1;
new strMessage[ 188 ]; vformat( strMessage, charsmax( strMessage ), strText, 3 );
static iMsg_SayText;
if( !iMsg_SayText )
iMsg_SayText = get_user_msgid( "SayText" );
replace_all( strMessage, charsmax( strMessage ), "!g", "^4" );
replace_all( strMessage, charsmax( strMessage ), "!y", "^1" );
replace_all( strMessage, charsmax( strMessage ), "!t", "^3" );
if( pPlayer ) aPlayers[ 0 ] = pPlayer; else get_players( aPlayers, iPlayersCount, "ch");
{
for( --iPlayersCount ; iPlayersCount >= 0 ; iPlayersCount-- )
{
pPlayer = aPlayers[ iPlayersCount ];
if( is_user_connected( pPlayer ) ) //lol
{
message_begin( MSG_ONE_UNRELIABLE, iMsg_SayText, _, pPlayer );
write_byte( pPlayer );
write_string( strMessage );
message_end();
}
}
}
}
/* ----------------------------------------------------------------------------
Сделано специально для RAGASHOP.
Еще больше плагинов тут - vk.com/ragashop
Связь с автором - vk.com/felhalas
Плагин: Наручники для JailBreak
Описание: Сковывает руки арестанту что не позволяет ему использовать оружие.
---------------------------------------------------------------------------- */
JailBreak Handcuffs 0.0.2 не запускается
: [AMXX] Plugin "JailBreak_Cuff.amxx" failed to load: Plugin uses an unknown function (name "jbe_get_user_team") - check your modules.ini.
помогите пожалуйста что надо чтоб запустить ?
: [AMXX] Plugin "JailBreak_Cuff.amxx" failed to load: Plugin uses an unknown function (name "jbe_get_user_team") - check your modules.ini.
помогите пожалуйста что надо чтоб запустить ?
В этой теме было размещено решение! Перейти к решению.