Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
Alexis

Арест и конвоирование игроков!

Recommended Posts

Позволяет арестовывать игрока и конвоировать куда вам потребуется, прилагаю видео=)

По стандарту, меню доступно игрокам с хуманити выше и ниже 5000, а также избранным персонам которых вы пропишите.

Для задержания требуется "Запчасть" (PartGeneric) - можно заменить на свое

 

Автор: Не знаю, вырвал с другой сборки которая в общем доступе

Перевод: Я=)

 

Приступим к установке

 

-Скачиваем архив, который доступен к скачиванию по ссылке внизу

 

-Открываем fn_selfAction.sqf и где-то после строки 400 вставляем следующий код

_isTrader = _typeOfCursorTarget in ["Hooker1","Hooker2","Hooker3","Hooker4","RU_Functionary1","RU_Citizen3","Rocker4","Profiteer4","Rita_Ensler_EP1","CIV_EuroMan01_EP1","CIV_EuroMan02_EP1","TK_GUE_Soldier_5_EP1","GUE_Soldier_MG","Worker2","Worker3","Woodlander1","UN_CDF_Soldier_Pilot_EP1","RU_WorkWoman1","Dr_Annie_Baker_EP1","RU_Citizen4","RU_WorkWoman5","RU_Citizen1","RU_Villager3","TK_CIV_Takistani04_EP1","Pilot_EP1","RU_Profiteer4","Woodlander3","Dr_Hladik_EP1","Doctor","HouseWife1","GUE_Woodlander2"];
//--------------------------------------Меню ареста--------------------------------------------------------------- 
		   if ((player getVariable"humanity") >= 5000 || (player getVariable"humanity") <= -5000 || (getPlayerUID player) in AdminList ) then {
			if(_isMan && !_isZombie && _canDo && _isAlive && !_isTrader) then {
				if (s_player_arrest < 0) then {
					s_player_arrest = player addaction ['<t color="#0074E8">' + "Меню ареста" + '</t>', "Scripts\Investigation\investigation.sqf","",100,false,true,"", ""];
					};									 
			} else {
				
				player removeAction s_player_arrest;
				s_player_arrest = -1;
				};
		};
//-------------------------------------------------------------------------------------------------------------

-Кладем архив в папку Scripts

 

-В AHConfig, в _cMenu добавляем

 

#USER:Investigation
 

В publicvariable.txt  добавьте следующее 

 

 !="PVDZ_ply_Arrst"
 

 

 

Поставь +

 

-На этом все=)

 

ДЛЯ ТЕХ КТО НЕ ПОНЯЛ, ТРЕЙДЕРОВ ТЯГАТЬ НЕЛЬЗЯ, Я ЭТУ ФУНКЦИЮ ПРОСТО ОТКЛЮЧИЛ ДЛЯ ДЕМОНСТРАЦИИ!

 

Investigation.zip

Edited by Alexis
Примечание (see edit history)

Share this post


Link to post
Share on other sites



Тестил кто? Может там в фильтра добавить чего можно?

Edited by Sheolone (see edit history)

Share this post


Link to post
Share on other sites

Тестил кто? Может там в антихак добавить нужно чего и в фильтра?

эм, как бы намекает 

 

-В AHConfig, в _cMenu добавляем
 

Да, тестил, я на своем же сервере запустил, даже видео снял, все работает

Share this post


Link to post
Share on other sites

Это доступно для НПЦ. и код там конечно можно упростить в разы.

Но плюс лови. Мб кому будет интересно.

Хотя игроков по сути тоже можно))))))

Share this post


Link to post
Share on other sites

Это доступно для НПЦ. и код там конечно можно упростить в разы.

Но плюс лови. Мб кому будет интересно.

Хотя игроков по сути тоже можно))))))

На нпц не доступно, я отключил на время записи видео=)

Share this post


Link to post
Share on other sites

у меня не работает, RPT локальный

 

 

Error Undefined variable in expression: adminlist
File mpmissions\__CUR_MP.Chernarus\Scripts\fn_selfActions.sqf, line 510
Error in expression <") <= -5000 or (getPlayerUID player) in AdminList ) then {
if(_isMan and !_isZom>
  Error position: <AdminList ) then {
if(_isMan and !_isZom>
  Error Undefined variable in expression: adminlist

 

 

Edited by Gromillla (see edit history)

Share this post


Link to post
Share on other sites

Или создай в ините в начале AdminList = ["твой юид"]; или убери часть условия в селф экшоне, а именно - || (getPlayerUID player) in AdminList, а еще нужно редактировать фильтры батл глаза

Edited by hekut144 (see edit history)

Share this post


Link to post
Share on other sites

Или создай в ините в начале AdminList = ["твой юид"]; или убери часть условия в селф экшоне, а именно - || (getPlayerUID player) in AdminList, а еще нужно редактировать фильтры батл глаза

в коде написано _isTrader = _typeOfCursorTarget in

это значит что он применяется к трейдерам с указанными скинами или к игрокам тоже применяется?

Share this post


Link to post
Share on other sites

вот такое он выдает в publicvariable.log

 

26.10.2015 01:31:59: Gromillla (192.168.0.100:2304) a805202fcfc2f5c751b9a28b8b7b5184 - #5 "PVAH_AdminReq" = [1234,<NULL-object>,"76561198083054081"]
26.10.2015 01:32:07: Gromillla (192.168.0.100:2304) a805202fcfc2f5c751b9a28b8b7b5184 - #5 "PVAH_WriteLogReq" = [<NULL-object>,[1048,1075,1088,1086,1082,32,71,114,111,109,105,108,108,108,97,32,45,32,1041,1077,1089,1089,1084,1077,1088,1090,1080,1077,32,1042,1082,1083,1102,1095,1077,1085,1086,32,40,1040,1076,1084,1080,1085,32,1060,1091,1085,1082,1094,1080,1103,41]]
26.10.2015 01:32:08: Gromillla (192.168.0.100:2304) a805202fcfc2f5c751b9a28b8b7b5184 - #5 "PVAH_WriteLogReq" = [<NULL-object>,[1048,1075,1088,1086,1082,32,71,114,111,109,105,108,108,108,97,32,45,32,1058,1077,1083,1077,1087,1086,1088,1090,32,1087,1086,32,1082,1083,1072,1074,1080,1096,1072,1084,32,53,32,1080,32,52,32,1042,1082,1083,1102,1095,1077,1085,32,40,1040,1076,1084,1080,1085,32,1060,1091,1085,1082,1094,1080,1103,41]]
26.10.2015 01:32:09: Gromillla (192.168.0.100:2304) a805202fcfc2f5c751b9a28b8b7b5184 - #5 "PVAH_WriteLogReq" = [<NULL-object>,[1048,1075,1088,1086,1082,32,71,114,111,109,105,108,108,108,97,32,45,32,1058,1077,1083,1077,1087,1086,1088,1090,32,1095,1077,1088,1077,1079,32,65,76,84,43,76,75,77,32,1042,1082,1083,1102,1095,1077,1085,32,40,1040,1076,1084,1080,1085,32,1060,1091,1085,1082,1094,1080,1103,41]]
26.10.2015 01:33:05: Gromillla (192.168.0.100:2304) a805202fcfc2f5c751b9a28b8b7b5184 - #0 "PVDZ_ply_Arrst" = <NULL-object>

Share this post


Link to post
Share on other sites

 

вот такое он выдает в publicvariable.log

 

26.10.2015 01:31:59: Gromillla (192.168.0.100:2304) a805202fcfc2f5c751b9a28b8b7b5184 - #5 "PVAH_AdminReq" = [1234,<NULL-object>,"76561198083054081"]
26.10.2015 01:32:07: Gromillla (192.168.0.100:2304) a805202fcfc2f5c751b9a28b8b7b5184 - #5 "PVAH_WriteLogReq" = [<NULL-object>,[1048,1075,1088,1086,1082,32,71,114,111,109,105,108,108,108,97,32,45,32,1041,1077,1089,1089,1084,1077,1088,1090,1080,1077,32,1042,1082,1083,1102,1095,1077,1085,1086,32,40,1040,1076,1084,1080,1085,32,1060,1091,1085,1082,1094,1080,1103,41]]
26.10.2015 01:32:08: Gromillla (192.168.0.100:2304) a805202fcfc2f5c751b9a28b8b7b5184 - #5 "PVAH_WriteLogReq" = [<NULL-object>,[1048,1075,1088,1086,1082,32,71,114,111,109,105,108,108,108,97,32,45,32,1058,1077,1083,1077,1087,1086,1088,1090,32,1087,1086,32,1082,1083,1072,1074,1080,1096,1072,1084,32,53,32,1080,32,52,32,1042,1082,1083,1102,1095,1077,1085,32,40,1040,1076,1084,1080,1085,32,1060,1091,1085,1082,1094,1080,1103,41]]
26.10.2015 01:32:09: Gromillla (192.168.0.100:2304) a805202fcfc2f5c751b9a28b8b7b5184 - #5 "PVAH_WriteLogReq" = [<NULL-object>,[1048,1075,1088,1086,1082,32,71,114,111,109,105,108,108,108,97,32,45,32,1058,1077,1083,1077,1087,1086,1088,1090,32,1095,1077,1088,1077,1079,32,65,76,84,43,76,75,77,32,1042,1082,1083,1102,1095,1077,1085,32,40,1040,1076,1084,1080,1085,32,1060,1091,1085,1082,1094,1080,1103,41]]
26.10.2015 01:33:05: Gromillla (192.168.0.100:2304) a805202fcfc2f5c751b9a28b8b7b5184 - #0 "PVDZ_ply_Arrst" = <NULL-object>

да, совсем забыл добавь в publicvariable.txt   !="PVDZ_ply_Arrst"

Share this post


Link to post
Share on other sites

 

вот такое он выдает в publicvariable.log

 

26.10.2015 01:31:59: Gromillla (192.168.0.100:2304) a805202fcfc2f5c751b9a28b8b7b5184 - #5 "PVAH_AdminReq" = [1234,<NULL-object>,"76561198083054081"]
26.10.2015 01:32:07: Gromillla (192.168.0.100:2304) a805202fcfc2f5c751b9a28b8b7b5184 - #5 "PVAH_WriteLogReq" = [<NULL-object>,[1048,1075,1088,1086,1082,32,71,114,111,109,105,108,108,108,97,32,45,32,1041,1077,1089,1089,1084,1077,1088,1090,1080,1077,32,1042,1082,1083,1102,1095,1077,1085,1086,32,40,1040,1076,1084,1080,1085,32,1060,1091,1085,1082,1094,1080,1103,41]]
26.10.2015 01:32:08: Gromillla (192.168.0.100:2304) a805202fcfc2f5c751b9a28b8b7b5184 - #5 "PVAH_WriteLogReq" = [<NULL-object>,[1048,1075,1088,1086,1082,32,71,114,111,109,105,108,108,108,97,32,45,32,1058,1077,1083,1077,1087,1086,1088,1090,32,1087,1086,32,1082,1083,1072,1074,1080,1096,1072,1084,32,53,32,1080,32,52,32,1042,1082,1083,1102,1095,1077,1085,32,40,1040,1076,1084,1080,1085,32,1060,1091,1085,1082,1094,1080,1103,41]]
26.10.2015 01:32:09: Gromillla (192.168.0.100:2304) a805202fcfc2f5c751b9a28b8b7b5184 - #5 "PVAH_WriteLogReq" = [<NULL-object>,[1048,1075,1088,1086,1082,32,71,114,111,109,105,108,108,108,97,32,45,32,1058,1077,1083,1077,1087,1086,1088,1090,32,1095,1077,1088,1077,1079,32,65,76,84,43,76,75,77,32,1042,1082,1083,1102,1095,1077,1085,32,40,1040,1076,1084,1080,1085,32,1060,1091,1085,1082,1094,1080,1103,41]]
26.10.2015 01:33:05: Gromillla (192.168.0.100:2304) a805202fcfc2f5c751b9a28b8b7b5184 - #0 "PVDZ_ply_Arrst" = <NULL-object>

Игрок Gromillla - Телепорт через ALT+LKM Включен (Админ Функция) - вот что в копилированном.

Share this post


Link to post
Share on other sites

да, совсем забыл добавь в publicvariable.txt   !="PVDZ_ply_Arrst"

я ставил, не помогает.

Share this post


Link to post
Share on other sites

В коде написанно - && !_isTrader, ключевой момент ! знак, значит отрицание

Share this post


Link to post
Share on other sites

В коде написанно - && !_isTrader, ключевой момент ! знак, значит отрицание

понял, спасибо. Осталось разобраться с фильтрами батлы

Share this post


Link to post
Share on other sites

разобрался ёпта!

держите код

//new
5 "" !="donn_heli_monitor" !"PVDZE_" !"PVDZ_" !"norrn" !"usec" !="remExField" !="remExFP" !="currentInvites" !="drn_AskServerDynamicWeatherEventArgs" !="norrinRAlie" !="BIS_effects_gepv" !="dayzPlayerLogin" !="dayzPlayerLogin2" !"PVAHR_" !="PVAH_AdminReq" !="PVAH_WriteLogReq"
5 "norrn" !="norrnRACarUp" !="norrnRAPicUp" !="norrnRaDrag" !="norrnR180" !="norrnRalie" !="norrnRLact" !="norrnRALW" !="norrnRDead"
5 "usec" !="usecMorphine" !="usecBandage" !="usecBleed"
5 "PVDZE_" !"PVDZE_player" !="PVDZE_send" !="PVDZE_log_lockUnlock" !="PVDZE_Server_Simulation" !="PVDZE_veh_Update" !="PVDZE_plr_GutBody" !="PVDZE_plr_GutBodyZ" !="PVDZE_veh_Lock" !="PVDZE_plr_DeathB" !="PVDZE_maintainArea" !="PVDZE_obj_Publish" !="PVDZE_obj_Swap" !="PVDZE_plr_Save" !="PVDZE_obj_Delete" !="PVDZE_obj_Trade" !="PVDZE_veh_Publish2" !="PVDZE_zed_Spawn" !="PVDZE_plr_Died" !="PVDZE_plr_TradeMenu" !="PVDZE_veh_Upgrade" !="PVDZE_atp" !="PVDZE_plr_Login" !="PVDZE_plr_Login2" !="PVDZE_plr_LoginRecord" !="PVDZE_plr_DeathBResult" !="PVDZE_veh_SFix" !="PVDZE_plr_Hit" !="PVDZE_plr_HitV" !="PVDZE_veh_SFuel" !="PVDZE_plr_HideBody" !="PVDZE_plr_Morph" !="PVDZE_veh_Publish" !="PVDZE_plr_Characters" !="PVDZE_lockVault" !="PVDZE_obj_setlocalVars" !="PVDZE_obj_getlocalVars" !="PVDZE_bank_Save" !="PVDZE_account_Doublecheck"
5 "PVAHR_" !"PVAHR_0_"
0 "PVDZ_" !="PVDZ_ply_Arrst"
1 "PVAH"
5 "remExFP" !="\"remExFP\" = \[,,\"per\",\"execVM\",\"ca\\Modules\\Functions\\init.sqf\"\]" !"\[,,\"per\",\"execVM\",\"ca\\Modules\\Functions\\init.sqf\"\]"
5="player"
5="server"
5 "fnc_plyrHit"
5 "AntiHack"
1 "Delete"

в первую строчку добавлено !"PVDZ_"

 

и перед 1 "PVAH" было добавлено 0 "PVDZ_" !="PVDZ_ply_Arrst"

Share this post


Link to post
Share on other sites

В publicvariable.txt, в строке начинающейся с 5 сделай пробел после последней записи и вставь !"PVDZ_ply_Arrst"

Edited by hekut144 (see edit history)

Share this post


Link to post
Share on other sites

Ещё момент, с админ стороны всё работает, а со стороны пользователей пишет инфистар "ЗАПРЕЩЕННОЕ КОМАНДНОЕ МЕНЮ: #USER:Investigation"

Указан в админ листе один человек, может убрать админ лист?

Share this post


Link to post
Share on other sites

Ещё момент, с админ стороны всё работает, а со стороны пользователей пишет инфистар "ЗАПРЕЩЕННОЕ КОМАНДНОЕ МЕНЮ: #USER:Investigation"

Указан в админ листе один человек, может убрать админ лист?

угу)) и тогда у тебя не будет админки))) ясно же написано 

-В AHConfig, в _cMenu добавляем
 

#USER:Investigation

Share this post


Link to post
Share on other sites

 

угу)) и тогда у тебя не будет админки))) ясно же написано 

-В AHConfig, в _cMenu добавляем
 

#USER:Investigation

Nope исключать надо внутри AH.sqf. Там если false на CMD стоит, то будет блокировать все, что в списке.

 

Недавно в помощи была тема, где фикс прикладывали

Share this post


Link to post
Share on other sites

угу)) и тогда у тебя не будет админки))) ясно же написано 

 

-В AHConfig, в _cMenu добавляем
 

#USER:Investigation

Ну так то глаза у меня наместе и я все сделал по гайду, поэтому упрекать в очевидных вещах не надо.

 

Nope исключать надо внутри AH.sqf. Там если false на CMD стоит, то будет блокировать все, что в списке.

Недавно в помощи была тема, где фикс прикладывали

Спасибо за очередной полезный ответ, сегодня попробую)

Share this post


Link to post
Share on other sites

в  AH.sqf  добавляем 

  1. #USER:Investigation

пример:

 

if (_commandingMenu != '#USER:Investigation') then

 

Если переменных больше,то вот так.

 

 if !(_commandingMenu in ['#USER:Investigation','#USER:TemplateMenu']) then

 

Вот решение, автор добавь в гайд.

Edited by Gromillla (see edit history)

Share this post


Link to post
Share on other sites

Скрипт клевый без сомнения - давно подобного не хватало. Вот только есть один нюанс - с сейфзоной. Сделать бы в ней запрет на арест и было бы совсем здорово.

Кстати, подумал - можно добавить функцию проверки кошелька арестованного - лишь добавить действие в investigation.sqf и направить на check_wallet.sqf

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By kommymist173
      Arma 3 Exile (Пиратка)
      Сервер запускается, прогружается :
       
      12:22:06 Dedicated host created. 12:22:14 Host identity created. 12:22:14 Game Port: 2302, Steam Query Port: 2303 12:22:14 Mission Exile.Altis read from bank. 12:22:15 Roles assigned. 12:22:15 Reading mission ... 12:22:44 Mission read. 12:22:44 Game started.   Но , когда пытаюсь войти на сервер пишет мл достигнуто максимальное число игроков ... перерыл весь интерент , ничего не нашел(   Кто сталкивался прошу помощи.
  • Our picks

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.