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
anap

Отображение ника убийцы

Как сделать чтобы игроки видели кто-кого убил(Пример: Игрок 1 был убить Игрок 2).

В гугле ничего нормального не нашел.

Share this post


Link to post
Share on other sites

Recommended Posts

  • 0

Как сделать чтобы игроки видели кто-кого убил(Пример: Игрок 1 был убить Игрок 2).

В гугле ничего нормального не нашел.

В init.sqf впиши:

 

DZE_DeathMsgGlobal = true;
DZE_DeathMsgTitleText = true;

И все.

 

Переводом можешь заняться сам в dayz_server.pbo/compile/server_playerDied.sqf

 

 

        if ((owner _victim) == (owner _killer)) then 
	{
		_message = format["%1 killed himself",_victimName];
		_loc_message = format["PKILL: %1 killed himself", _victimName];
	}
	else
	{
		_message = format["%1 was killed by %2 with weapon %3 from %4m",_victimName, _killerName, _weapon, _distance];
		_loc_message = format["PKILL: %1 was killed by %2 with weapon %3 from %4m", _victimName, _killerName, _weapon, _distance];
	};

 

Про кодировку только не забудь (UTF -8 без BOM)

Share this post


Link to post
Share on other sites



  • 0

В init.sqf впиши:

 

DZE_DeathMsgGlobal = true;
DZE_DeathMsgTitleText = true;

И все.

 

Переводом можешь заняться сам в dayz_server.pbo/compile/server_playerDied.sqf

 

 

        if ((owner _victim) == (owner _killer)) then 
	{
		_message = format["%1 killed himself",_victimName];
		_loc_message = format["PKILL: %1 killed himself", _victimName];
	}
	else
	{
		_message = format["%1 was killed by %2 with weapon %3 from %4m",_victimName, _killerName, _weapon, _distance];
		_loc_message = format["PKILL: %1 was killed by %2 with weapon %3 from %4m", _victimName, _killerName, _weapon, _distance];
	};

 

Про кодировку только не забудь (UTF -8 без BOM)

Слушай, Спасибо тебе за всё!!!

Share this post


Link to post
Share on other sites
  • 0

Слушай, Спасибо тебе за всё!!!

Да не за что и еще. 1 сообщение то есть _message это вывод сообщения на сервер, а _loc_message это вывод в лог.

 

И еще маленький, но полезный нюанс.

 

Помимо регистрации убийств в лог файл, еще и регистрируется "система попаданий", то есть пока оба игрока живы, но хотя бы раз попали по друг другу, то сервер об этом сообщит в логе. Зачем это нужно можно спросить, однако "Система регистрации убийств" иногда косячит с вычислением расстояния и засчет "Системы попаданий" мы может точно убедиться с какого расстояния было попадание/убийство.

 

Файл находиться в dayz_server.pbo/compile/fnc_plyrHit.sqf

diag_log format["ПЕРЕСТРЕЛКА: %1 попал в %2 (Оружие: %3) (Расстояние: %4м) (Урон %5 ед)", _victim, _attacker, _weapon, _distance, _damage];

Ну тут я уже перевел, не стал лесть в оригинальные файлы.

Share this post


Link to post
Share on other sites
  • 0

Думаю для моего сервака подойдет, у меня PVE, не знаю так с самого начало было, PVP  много серверов было, и мы решили сделать такой, так вот, бывают случаи когда по ошибке игрок убивает игрока, перепутал с ботом, и начинается движняк кто кого убил, полезная вещь

Share this post


Link to post
Share on other sites
  • 0

поставил, уже устали здыхать, но имя убившего не отображается

Share this post


Link to post
Share on other sites
  • 0

поставил, уже устали здыхать, но имя убившего не отображается

Вот есть кастомный Кил меседж, если интересно 

 

создать файл  kill_msg.sql  , внутри 

 

 

 

fnc_kill_message = {
	private ["_finaltxt"];
	_finaltxt = _this select 0;
	[_finaltxt,[safezoneX + 0.01 * safezoneW,2.0],[safezoneY + 0.01 * safezoneH,0.3],30,0.5] spawn BIS_fnc_dynamicText;
};
"customkillMessage" addPublicVariableEventHandler {(_this select 1) call fnc_kill_message;}; 

 

 

  

 

кидаешь в миссию . и в ините 

if (!isDedicated) then {
execVM "Твой путь\kill_msg.sqf";

в файле  fnc_plyrHit  все меняешь на ето

 

 

 

private ["_victim", "_attacker","_weapon","_weapon_dmg","_distance","_damage","_weapon_img"];
_victim = _this select 0;
_attacker = _this select 1;
_damage = _this select 2;

if (!isPlayer _victim || !isPlayer _attacker) exitWith {};
if ((owner _victim) == (owner _attacker)) exitWith {
	_victim setVariable["AttackedBy", _victim, true];
};

_weapon = (weaponState _attacker);

_vehicle = typeOf (vehicle _attacker); 

if ((getText (configFile >> "CfgVehicles" >> _vehicle >> "vehicleClass")) in ["CarW","Car","CarD","Armored","Ship","Support","Air","ArmouredW","ArmouredD","SupportWoodland_ACR"]) then {
	_weapon_dmg = getText (configFile >> 'CfgVehicles' >> _vehicle >> 'displayName');
	_weapon_img = gettext(configFile >> 'CfgVehicles' >> _vehicle >> 'picture');
} else {
	_weapon_dmg = gettext (configFile >> 'cfgWeapons' >> (currentWeapon _attacker) >> 'displayName');
	_weapon_img = gettext(configFile >> 'cfgWeapons' >> (currentWeapon _attacker) >> 'picture');
};

_distance = _victim distance _attacker;

diag_log format["PLAYERHIT: %1 was hit by %2 with %3 from %4m with %5 dmg", _victim, _attacker, _weapon_dmg, _distance, _damage];

_victim setVariable["AttackedBy", _attacker, true];
_victim setVariable["AttackedByName", (name _attacker), true];
_victim setVariable["AttackedByWeapon", _weapon_dmg, true];
_victim setVariable["AttackedFromDistance", _distance, true];
_victim setVariable["AttackedByWeaponImg", _weapon_img, true]; 

 

 

 

 

в файле server_playerDied  , все на ето 

 

 

 

private ["_characterID","_minutes","_newObject","_playerID","_infected","_victim","_victimName","_killer","_killerName","_weapon","_distance","_message","_loc_message","_key","_death_record","_pic","_kill_txt"];
//[unit, weapon, muzzle, mode, ammo, magazine, projectile]
_characterID = 	_this select 0;
_minutes =		_this select 1;
_newObject = 	_this select 2;
_playerID = 	_this select 3;
_infected =		_this select 4;
if (((count _this) >= 6) && {(typeName (_this select 5)) == "STRING"} && {(_this select 5) != ""}) then {
	_victimName =	_this select 5;
} else {
	_victimName =  if (alive _newObject) then {name _newObject;} else {"";};
};
_victim = _newObject;
_newObject setVariable ["bodyName", _victimName, true];

_killer = _victim getVariable["AttackedBy", "nil"];
_killerName = _victim getVariable["AttackedByName", "nil"];

// when a zombie kills a player _killer, _killerName && _weapon will be "nil"
// we can use this to determine a zombie kill && send a customized message for that. right now no killmsg means it was a zombie.
if ((typeName _killer) != "STRING") then
{
	_weapon = _victim getVariable["AttackedByWeapon", "nil"];
	_distance = _victim getVariable["AttackedFromDistance", "nil"];

	if ((owner _victim) == (owner _killer)) then 
	{
		_message = format["%1 killed himself",_victimName];
		_loc_message = format["PKILL: %1 killed himself", _victimName];
	}
	else
	{
		_message = format["%1 was killed by %2 with weapon %3 from %4m",_victimName, _killerName, _weapon, _distance];
		_loc_message = format["PKILL: %1 was killed by %2 with weapon %3 from %4m", _victimName, _killerName, _weapon, _distance];
	
		_pic = _victim getVariable["AttackedByWeaponImg", "nil"];
		
		if ((gettext (configFile >> 'cfgWeapons' >> (currentWeapon _killer) >> 'displayName')) != "Throw") then {
			if (!isNil "_pic") then {
				_kill_txt = format ["<t align='left' size='0.9'>%1 </t>",_killerName,_pic,_victimName,(ceil _distance)];
				_kill_txt = _kill_txt + format ["<img size='1.0' align='left' image='%2'/>",_killerName,_pic,_victimName,(ceil _distance)];
				_kill_txt = _kill_txt + format ["<t align='left' size='0.9'> %3 </t>",_killerName,_pic,_victimName,(ceil _distance)];
				_kill_txt = _kill_txt + format ["<t align='left' size='0.9'>[%4m]</t>",_killerName,_pic,_victimName,(ceil _distance)];

				customkillMessage = [_kill_txt];
				publicVariable "customkillMessage";
			};
		};
	};

	diag_log _loc_message;
	
	if(DZE_DeathMsgGlobal) then {
		[nil, nil, rspawn, [_killer, _message], { (_this select 0) globalChat (_this select 1) }] call RE;
	};
	/* needs customRemoteMessage
	if(DZE_DeathMsgGlobal) then {
		customRemoteMessage = ['globalChat', _message, _killer];
		publicVariable "customRemoteMessage";
	};
	*/
	if(DZE_DeathMsgSide) then {
		[nil, nil, rspawn, [_killer, _message], { (_this select 0) sideChat (_this select 1) }] call RE;
	};
	if(DZE_DeathMsgTitleText) then {
		[nil,nil,"per",rTITLETEXT,_message,"PLAIN DOWN"] call RE;
	};

	// build array to store death messages to allow viewing at message board in trader citys.
	_death_record = [
		_victimName,
		_killerName,
		_weapon,
		_distance,
		ServerCurrentTime
	];
	PlayerDeaths set [count PlayerDeaths,_death_record];

	// Cleanup
	_victim setVariable["AttackedBy", "nil", true];
	_victim setVariable["AttackedByName", "nil", true];
	_victim setVariable["AttackedByWeapon", "nil", true];
	_victim setVariable["AttackedFromDistance", "nil", true];
};

// Might not be the best way...
/*
if (isnil "dayz_disco") then {
	dayz_disco = [];
};
*/

// dayz_disco = dayz_disco - [_playerID];
_newObject setVariable["processedDeath",diag_tickTime];

if (typeName _minutes == "STRING") then
{
	_minutes = parseNumber _minutes;
};

diag_log ("PDEATH: Player Died " + _playerID);

if (_characterID != "0") then
{
	_key = format["CHILD:202:%1:%2:%3:",_characterID,_minutes,_infected];
	#ifdef DZE_SERVER_DEBUG_HIVE
	diag_log ("HIVE: WRITE: "+ str(_key));
	#endif
	_key call server_hiveWrite;
}
else
{
	deleteVehicle _newObject;
}; 

 

 

 

 

получаем ето 

 

LMfKxVMIV-0.jpg

Edited by Bandit3 (see edit history)

Share this post


Link to post
Share on other sites
  • 0

Ок, спасибо, поставлю, щас онлайн попер, так что в данный момент не могу, позже, и отпишусь

Share this post


Link to post
Share on other sites
  • 0

Поставил, все хорошо работает, спасибо, +

Share this post


Link to post
Share on other sites
  • 0

Доброго дня, вопрос по поводу вывода сообщений в логи

 

loc_message = format["PKILL: %1 was killed by %2 with weapon %3 from %4m", _victimName, _killerName, _weapon, _distance];
 

как добавить в логи координаты убитого, и желательно координаты убившего, на сколько я понял нужно мудрить с переменной _playerPos, может кто что подскажет?

неуверен что такой код будет верен:

 

loc_message = format["PKILL: %1 was killed by %2 with weapon %3 from %4m", _victimName, _killerName, _weapon, _distance, _playerPos];

 

предварительно ясное дело прописав в private, просто нет возможности щас проверить методом подстановки, заранее благодарю

Share this post


Link to post
Share on other sites
  • 0

Доброго дня, вопрос по поводу вывода сообщений в логи

 

loc_message = format["PKILL: %1 was killed by %2 with weapon %3 from %4m", _victimName, _killerName, _weapon, _distance];
 

как добавить в логи координаты убитого, и желательно координаты убившего, на сколько я понял нужно мудрить с переменной _playerPos, может кто что подскажет?

неуверен что такой код будет верен:

 

loc_message = format["PKILL: %1 was killed by %2 with weapon %3 from %4m", _victimName, _killerName, _weapon, _distance, _playerPos];

 

предварительно ясное дело прописав в private, просто нет возможности щас проверить методом подстановки, заранее благодарю

точно) спс большое, буду дома, проверим) просто возникла проблема, в рпт логах отображаются непонятные координаты с минусом, хотя в  server_playerDied.sqf координат нет прописаных

Share this post


Link to post
Share on other sites
  • 0

Это высота. Думаю она тебе нестоль важна.

_playerPos отобразит только высоту?

Edited by thorus (see edit history)

Share this post


Link to post
Share on other sites
  • 0

_playerPos отобразит только высоту?

Вот с этим не подскажу, не парился с выпиской координат и т.п.

 

Обычно показывается X,Y,Z и бывает такое что параметр Z выдается за минус. А все остальное как полагается.

Share this post


Link to post
Share on other sites
  • 0

 

_playerPos отобразит только высоту?

Ты объявил переменную _playerPos?

Share this post


Link to post
Share on other sites
  • 0

Ты объявил переменную _playerPos?

Я в курсе как его вывести, просто еще не выводил, так и не добрался вчера до компа) Решил проконсультироваться,может кто делал что то подобное, вдруг кто другим путем пошел, допустим через инфистар в отдельный файл, все же там проще найти чем в рпт логах))))

Share this post


Link to post
Share on other sites
  • 0

Я в курсе как его вывести, просто еще не выводил, так и не добрался вчера до компа) Решил проконсультироваться,может кто делал что то подобное, вдруг кто другим путем пошел, допустим через инфистар в отдельный файл, все же там проще найти чем в рпт логах))))

Ну можно сделать все просто. В самом верху объявляешь переменную _playerpos = getpos player.

Затем пишешь:

diag_log format["PKILL: %1 was killed by %2 with weapon %3 from %4m, position: %5", _victimName, _killerName, _weapon, _distance, _playerpos];

Так будет правильно

Share this post


Link to post
Share on other sites
  • 0

В init.sqf впиши:

 

DZE_DeathMsgGlobal = true;
DZE_DeathMsgTitleText = true;

И все.

 

Переводом можешь заняться сам в dayz_server.pbo/compile/server_playerDied.sqf

 

 

        if ((owner _victim) == (owner _killer)) then 
	{
		_message = format["%1 killed himself",_victimName];
		_loc_message = format["PKILL: %1 killed himself", _victimName];
	}
	else
	{
		_message = format["%1 was killed by %2 with weapon %3 from %4m",_victimName, _killerName, _weapon, _distance];
		_loc_message = format["PKILL: %1 was killed by %2 with weapon %3 from %4m", _victimName, _killerName, _weapon, _distance];
	};

 

Про кодировку только не забудь (UTF -8 без BOM)

Ага, на ПВП серверах, этож так приятно -

Бегут 2-3 тела по ВПП. А гдето лежит снайпер. Убивает одно тело. И ! ВУАЛЯ!)) Оставшиеся в живых, знают - сколько метров до него, из чего он стрелял, и кто он)

Это замечательное ПВП, с эдакими подсказками) - Еще можно ставить на место снайпера красный огромный столб, и на всю мапу писать его коорды))))))

Share this post


Link to post
Share on other sites
  • 0

Ага, на ПВП серверах, этож так приятно -

Бегут 2-3 тела по ВПП. А гдето лежит снайпер. Убивает одно тело. И ! ВУАЛЯ!)) Оставшиеся в живых, знают - сколько метров до него, из чего он стрелял, и кто он)

Это замечательное ПВП, с эдакими подсказками) - Еще можно ставить на место снайпера красный огромный столб, и на всю мапу писать его коорды))))))

Координаты можно в только в логи писать

Share this post


Link to post
Share on other sites
  • 0

Ага, на ПВП серверах, этож так приятно -

Бегут 2-3 тела по ВПП. А гдето лежит снайпер. Убивает одно тело. И ! ВУАЛЯ!)) Оставшиеся в живых, знают - сколько метров до него, из чего он стрелял, и кто он)

Это замечательное ПВП, с эдакими подсказками) - Еще можно ставить на место снайпера красный огромный столб, и на всю мапу писать его коорды))))))

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

Share this post


Link to post
Share on other sites
  • 0

Ребята, да теоретически нет смысла вообще ставить этот скрипт на ПВП, можно немного переписать и сделать презент тому кто завалил, к примеру денежное вознаграждение, или еще как, а просто высвечивать кто кого завалил на ПВП , не то все это

Edited by Alex39 (see edit history)

Share this post


Link to post
Share on other sites
  • 0

Для ПВП в каждом городе стоят таблицы смертей.

Этого более чем достаточно.

Share this post


Link to post
Share on other sites
  • 0

private ["_playerObj"]; // добаваить

_playerObj = nil; // инициализация ( вот тут не пойму) может так  _playerObj = [];

_loc_message = format[" позиция: %1", (getPosATL _playerObj)];
 

поправте если что не так

 

Ребята, да теоретически нет смысла вообще ставить этот скрипт на ПВП, можно немного переписать и сделать презент тому кто завалил, к примеру денежное вознаграждение, или еще как, а просто высвечивать кто кого завалил на ПВП , не то все это

Я же не рассматриваю это для пвп))) а при нарушениях правил вообщем то) просто была такая тема, я и написал сюда, тем более в названии темы, нет пвп

Edited by thorus (see edit history)

Share this post


Link to post
Share on other sites
  • 0

Интересно, на ПВП есть правила убийства? Хотя каждый сам командует своим сервером и редактирует правила под себя

Share this post


Link to post
Share on other sites
  • 0

Интересно, на ПВП есть правила убийства? Хотя каждый сам командует своим сервером и редактирует правила под себяпри

причем здесь пвп, меня не интересовал вопрос про пвп, я написал что мне нужно для логов нарушителей вычислять

Edited by thorus (see edit history)

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 DIasTer
      Сколько лазил, не нашел, кто знает как сделать?
    • By Litt3n
      Как в инфистаре сделать отображение количество денег у игрока?
    • By Litt3n
      Как в инфистаре сделать отображение количество денег у игрока?
    • By Sovest2
      Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.

      Подготовка
      Для начала нам понадобится подключить кастомный player_death.sqf в compiles.sqf
      Делается это следующим образом:
      В compiles.sqf заменить строку 
      player_death = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_death.sqf"; на
      player_death = compile preprocessFileLineNumbers "*ВАШ ПУТЬ*\player_death.sqf";  
      Если у вас стоит инфистар,то необходимо заменить строку в AH.sqf
      _death = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_death.sqf'; на
      _death = compile preprocessFileLineNumbers '*ВАШ ПУТЬ*\player_death.sqf';  
      В вашем кастомном player_death.sqf необходимо заменить 
      _array = _this; if (count _array > 0) then { _source = _array select 0; _method = _array select 1; if ((!isNull _source) && (_source != player)) then { _canHitFree = player getVariable ["freeTarget",false]; _isBandit = (player getVariable["humanity",0]) <= -2000; _punishment = _canHitFree || _isBandit; //if u are bandit || start first - player will not recieve humanity drop _humanityHit = 0; if (!_punishment) then { //i'm "not guilty" - kill me && be punished _myKills = ((player getVariable ["humanKills",0]) / 30) * 1000; _humanityHit = -(2000 - _myKills); _kills = _source getVariable ["humanKills",0]; _source setVariable ["humanKills",(_kills + 1),true]; PVDZE_send = [_source,"Humanity",[_source,_humanityHit,300]]; publicVariableServer "PVDZE_send"; } else { //i'm "guilty" - kill me as bandit _killsV = _source getVariable ["banditKills",0]; _source setVariable ["banditKills",(_killsV + 1),true]; }; }; _body setVariable ["deathType",_method,true]; }; на
      _array = _this; if (count _array > 0) then { _source = _array select 0; _method = _array select 1; if ((!isNull _source) && (_source != player)) then { [player,_source]execVM "*ВАШ ПУТЬ*\humanityChange.sqf"; [player,_source]execVM "*ВАШ ПУТЬ*\kill_msg_send.sqf"; }; _body setVariable ["deathType",_method,true]; }; Отображение ника убийцы(Kill message)
       
      Создаем файл и закидываем в миссию файл kill_msg_send.sqf
      С содержанием
      private ["_victim","_killer","_vehicle","_weapon","_pic"]; _victim = _this select 0; _killer = _this select 1; _killerName = name _killer; _victimName = name _victim; _vehicle = typeOf (vehicle _killer); _weapon = currentWeapon _killer; if ((getText (configFile >> "CfgVehicles" >> _vehicle >> "vehicleClass")) in ["CarW","Car","CarD","Armored","Ship","Support","Air","ArmouredW","ArmouredD","SupportWoodland_ACR","AllVehicles"]) then { _pic = gettext(configFile >> 'CfgVehicles' >> _vehicle >> 'picture'); } else { _pic = gettext(configFile >> 'cfgWeapons' >> _weapon >> 'picture'); }; _kill_txt = format ["<t align='left' size='0.5'>%1 </t>",_victimName]; _kill_txt = _kill_txt + format ["<img size='1.0' align='left' image='%1'/>",_pic]; _kill_txt = _kill_txt + format ["<t align='left' size='0.5'> %1 </t>",_killerName]; PVDZE_send = [player,"kill_message",[_kill_txt]]; publicVariableServer "PVDZE_send";  
      Далее,нам необходимо отредактировать файл server_sendToClient.sqf ,которой находится в директории сервера
      И добавить после
      case "tagFriendly": { PVDZE_plr_FriendRQ = _arraytosend; _owner publicVariableClient "PVDZE_plr_FriendRQ"; }; Это
      case "kill_message": { custom_kill_message_show = _arraytosend; publicVariable "custom_kill_message_show"; }; Теперь необходимо создать файл kill_msg_show.sqf в папке с вашей миссией
      с содержимым
      private ["_pos","_i"]; arr_kill = ["","","","","",""]; fnc_kill_message = { private ["_finaltxt"]; _finaltxt = _this select 0; for[{_i = 0},{(_i<6)},{_i = _i +1}] do { if((arr_kill select _i) == "") then { arr_kill set [_i,_finaltxt]; [_i] execVM "*ВАШ ПУТЬ*\kill_msg_delete.sqf"; _i = count(arr_kill); }; }; }; "custom_kill_message_show" addPublicVariableEventHandler {(_this select 1) call fnc_kill_message;}; while {true} do { _pos = 0.01; _layout = 1001; { [_x,[safezoneX + 0.01 * safezoneW,2.0],[safezoneY + _pos * safezoneH,0.3],5,0.5,0,_layout] spawn BIS_fnc_dynamicText; _pos = _pos + 0.021; _layout = _layout + 1; } ForEach arr_kill; sleep 1; }; Создать файл kill_msg_delete.sqf с 
      private["_pos"]; _pos = _this select 0; sleep 10; arr_kill set [_pos,""];  
      И вставить в init.sqf после строки
      _playerMonitor = [] execVM "custom\player_monitor.sqf"; строку
      execVM "*ВАШ ПУТЬ*\kill_msg_show.sqf"; Осталось только добавить
      custom_kill_message_show В первую строку файла publicvariable.txt
       
      Все,отображение ника убийцы готово!
       
       
      Изменение человечности за убийство Бандита\Героя
      создать файл humanityChange.sqf с содержимым
      private ["_victim","_killer","_myKills","_humanity","_killerHumanity","_isKillerBandit","_isBandit","_humanityHit","_kills","_killerGunner"]; _victim = _this select 0; _killer = _this select 1; _humanity = _victim getVariable["humanity",0]; _killerHumanity = _killer getVariable["humanity",0]; _isKillerBandit = (_killerHumanity) < 0 ; _isBandit = (_humanity) < 0; _humanityHit = 0; _myKills = 0; _killerVehicle = vehicle _killer; if(((!_isBandit) && _isKillerBandit) || (_isBandit && (!_isKillerBandit))) then { _myKills = round((_humanity) / 10); }; if(!_isBandit) then { _myKills = (_myKills + 200); _kills = _killer getVariable ["humanKills",0]; _killer setVariable ["humanKills",(_kills + 1),true]; } else { _myKills = (_myKills - 200); _kills = _killer getVariable ["banditKills",0]; _killer setVariable ["banditKills",(_kills + 1),true]; }; _killerGunner = gunner _killerVehicle; if(!isNil"_sourceGunner") then { _killer = _killerGunner; }; _humanityHit = _myKills * (-1); PVDZE_send = [_killer,"Humanity",[_killer,_humanityHit,300]]; publicVariableServer "PVDZE_send"; Изменение Человечности готово!
       
      Плюсы Всего этого:
      Отображение ника убийцы теперь работает всегда и корректно.(Если убивают с техники или с одного выстрела).
  • 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.