Jump to content

Recommended Posts

Hello There.

I know, there are 'bout a couple topics of this, but i cant get anything to work.

First of all, im searching for a script, That tells otther player who got killed, who the killer were and which weapon the killer had.

for an Example : Player 1 was killed by Player 2 with weapon [insertgunnamehere].

I tried such scripts Via an eventhandler which executes the script when the unit is died.

Well, as i said its not working for me.

There are like thousand scripts, which displays the message as a hint, but i need it for the Globalchat.

Thanks for any help.:)

Yours faithfully, ViciousViper.

Share this post


Link to post
Share on other sites

Can you post us the script you were using?

Maybe we can find a solution, because the first thing I'd have said would be using addMPEventHandler and MPKilled as the corresponding event.

Share this post


Link to post
Share on other sites

For sure, here it is:

PHP]

_player = _this select 0;
_killer = _this select 1;

_killerWep = currentWeapon _killer;
_distance = _killer distance _player;
_distance = floor(_distance);

if(_player == _killer) then {
[player, nil, rGlobalChat, format["%1 killed himself",name _player]] call RE;
} else {
[player, nil, rGlobalChat, format["%1 was killed by %2 with %4",name _player,name _killer,_distance,_killerWep]] call RE;
};

[/php]

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×