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
  • 0
Sign in to follow this  
paranoyk

Отображение пароля или взлом замка админом

Раньше,когда мамонты паслись у меня возле дома,а бегемоты грызли бамбук был антирейд который всё таки работал.
Но это вчера.
В старом антирейде была возможность админу взяв в руки пилу или спилить или узнать пароль замка, что помогало в некоторых ситуациях.
Теперь этого нет.
Может кто знает как переделать старый скрипт вида
 

modded class ActionDestroyCombinationLock: ActionContinuousBase
{
	override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
	{
		Object target_object = target.GetObject();
		string selection = target_object.GetActionComponentName( target.GetComponentIndex() );
		Fence fence = Fence.Cast( target_object );
		
		if(GetDDConfig().GetBlockCutLock())
		{
			//*****************************
			// Отключаем распиливание замка
			if(fence.FindAttachmentBySlotName("Att_CombinationLock"))// || target_object.FindAttachmentBySlotName("Att_CombinationLock"))
			{
				CombinationLock combination_lock =  fence.GetCombinationLock();
				// Проверяем статус закрыт или нет
				if (combination_lock.IsLockedOnGate())
				{
					// Отладка баганых замков для админа (снимаются ножовкой)
					if(GetDDConfig().IsAdmin(player.GetIdentity().GetPlainId()))
					{
						combination_lock.UnlockServer( player, fence );
						combination_lock.m_DialIndex = combination_lock.m_CombinationLocked;
						Param1<string> AdminMsg = new Param1<string>(string.Format(GetDDConfig().GetMsgAdmin(), combination_lock.m_CombinationLocked.ToString()));
						GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, AdminMsg, true, player.GetIdentity());
						//GetGame().GetCallQueue( CALL_CATEGORY_GAMEPLAY ).CallLater( combination_lock.DestroyLock, 200, false );
						return false;
					}
				}
				
				if(GetDDConfig().GetDebug())
					Print("::: SERVER: [class ActionDestroyCombinationLock: ActionContinuousBase DEBUG]: ActionCondition() ::: Player: " + player.ToString() + ", target_object = " + target_object.ToString() + ", item = " + item.ToString() + ", selection = " + selection);
				
				if(GetDDConfig().GetShowMessage())
				{
					Param1<string> Msgparam = new Param1<string>(GetDDConfig().GetMsgCantCutLock());
					GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, Msgparam, true, player.GetIdentity());
				}
				return false;
			}
			//*****************************
		}
		return true;
	}
};

(скрипт от "Ловца"), в рабочий,что бы хотя бы админ мог видеть пароль.

 

Edited by paranoyk (see edit history)

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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
Sign in to follow this  

×
×
  • 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.