Jump to content
Sign in to follow this  
clawhammer

Add a person who killed the Target special Score Points

Recommended Posts

UPDATE:

This comes into the unit that get killed in the init field:

_index = VIP01 addMPEventHandler [""mpkilled"", {Null = _this execVM ""Scripts\VIP\VIP.sqf"";}];

Code of the VIP.sqf:

Hint "Test";

Killer = _this select 1;

if (isServer) then {
Killer addScore 100; // for hosted environment
} else {
paddscore = [Killer, 100]; publicVariable "paddscore";
};

It works but it has one mistake, i dont get just 100 Points!

I get 200 Points and i have no clue why!?

I belive it has something to do with the player on the server, if there are more the script gets executed at every player.

Any idea how to fix this?

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  

×