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

Имеется обычный дейзМод. Захотел там придумать сейфзону, взял отсюда http://s-platoon.ru/index.php?/topic/635-gaid-seif-zony-ot-infistar-vladeltcam-antikhaka-ot-infistar/ В итоге работает. Но только у админов. Что в скрипте поменять чтоб он срабатывал у игроков? Прошу помощи.

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Дошли руки доделать, мешал инфистар. 

Share this post


Link to post
Share on other sites



  • 0

Я не знаю как ты адаптировал сиё к ванильной Дезе - разве что шаришь в PV, но в любом случае - думаю стоит обратить внимание на переменную gmadmin

Share this post


Link to post
Share on other sites
  • 0

Я не знаю как ты адаптировал сиё к ванильной Дезе - разве что шаришь в PV, но в любом случае - думаю стоит обратить внимание на переменную gmadmin

А что с этой переменной может быть не так? Я почему то грешу на какую то из compile preprocessFileLineNumbers

Edited by godmode8 (see edit history)

Share this post


Link to post
Share on other sites
  • 0

Ну, я скачал скрипт по твоему линку из шапки, там поиск по буквосочетанию adm выдал только одно - то, на что и просил обратить внимание: 

gmadmin

В функции, где она стояла я увидел, что если её не существует - сейфзона отключена

Ну вот он - тот кусок кода:

		_end = false;
		if (isNil 'gmadmin') then
		{
			_end = true;
		}
		else
		{
			if (gmadmin == 0) then
			{
				_end = true;
			};
		};
		if (_end) then
		{
			player allowDamage true;
			fnc_usec_damageHandler = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\fn_damageHandler.sqf';
			player removeAllEventHandlers 'HandleDamage';
			player addeventhandler ['HandleDamage',{_this call fnc_usec_damageHandler;} ];
		};

Короче - думаю у тебя где-то в конфигах есть запись, что для админов переменная gmadmin == 1; или типа того..  :wink:



А по поводу PublicVariable - у Эпохи они PVDZE_, и не будут работать с обработчиком PVDZ_

Share this post


Link to post
Share on other sites
  • 0

Нарушение правил сообщества

Тема размещена не в том разделе. Перенёс.

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

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