Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- span class="re5"> Deaths = 0;
- //addMPEventHandler ["MPKilled",{hint format ["%1 was killed by %2",name (_this select 0),profileName (_this select 1)];}];
- //addMPEventHandler ["MPKilled", {params ["_killed", "_killer"];
- addMissionEventHandler ["EntityKilled", {params ["_killed", "_killer", "_instigator"];
- //hint str _instigator;
- //hint "test 1" + str player;
- //if ((_instigator isEqualTo player)) then {
- if (_killed isKindOf "Man" && {side group _killed isEqualTo CIVILIAN}) then {
- hint name _killer;
- _killer = profileName;
- if ((_instigator) == (_killer)) then {
- hint format ["%1 matches %2", _killer, name player];
- };
- //_instigator = profileName;
- Deaths = (Deaths + 1);
- format ["Player %1 killed a civilian", _killer] remoteExec ["systemChat"];
- format ["Civilians killed: %1", str Deaths] remoteExec ["systemChat"];
- [ [ ["<t color='#ff1111' underline = '1'>" + _killer + "</t>"], ["Civilians killed: " + str Deaths], ["Stop shooting the civs!", "<t align = 'center' shadow = '1' size = '0.7' font='puristaMedium'>%1</t>", 30] ] , .7, 0.75, "<t align = 'center' shadow = '1' size = '1.0'>%1</t>" ] remoteExec ["BIS_fnc_typeText"];
- if (Deaths >= 10) then {
- ["epicFail",false,2] remoteExec ["BIS_fnc_endMission"];
- };
- };
- //};
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement