Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

script on the suicide button is F11

Newbie Spellweaver
Joined
May 5, 2016
Messages
64
Reaction score
81
here is the keybind

admin_killtarg =
{
killmyself = player; publicvariableserver "killmyself";
};


(findDisplay 46) displayAddEventHandler ['KeyDown', 'if ((_this select 1) == 0x57) then
{
call admin_killtarg;
}'];








"killmyself" addPublicVariableEventHandler
{
_agent = _this select 1;
_startpos = getpos _agent;
_agent playaction "suicide";
_eh = _agent addeventhandler ["fired",{(_this select 0) setdamage 1} ];
[_agent,_startpos] spawn
{
waitUntil {floor((_this select 1) distance getpos (_this select 0)) > 0.001};
(_this select 0) removeAllEventHandlers "fired";
};
};
 
Back
Top