Kill Script

Posts 1–7 of 7 · Page 1 of 1
Kill Script
I have one that kill's everyone but i can't find one that just kill's a single player can anyone share one that work's?

thank's if not then it's kool
I think you will need a RE for that.
You dont need an re for that script
Quote Originally Posted by typh0 View Post
You dont need an re for that script
Are you sure? Im pretty sure you need a RE for that.
For use in any variant of monky menu:
Code:
_name = _this select 0;
hint format ["Killing %1", _name];
_tkill = format["if (name player == '%1') then
{
	if (alive player) then { player SetDamage 1.1;};
};", _name];
[_tkill] execVM "scr\exec.sqf";
This one drops a player from 100m up in the air to kill them (no remote exc required). But you need to type their name into it manually:


Code:
private["_pList", "j", "i", "_pArray", "v", "_dir", "_pos"];
_pList = playableUnits;
j = count _pList;
i = 0;
_pArray = [];

for "i" from 0 to j do
    {
        v = _pList select i;
        v setVariable["lastPos",0, true];
        if(format[name v] == 'PLAYERNAMEHERE') then {
            _pos = getPos vehicle player;
            _pos = [(_pos select 0)-10*sin(_dir),(_pos select 1)-10*cos(_dir),55];
            v setPos _pos;

        }

    };
Quote Originally Posted by furiouswai View Post
For use in any variant of monky menu:
Code:
_name = _this select 0;
hint format ["Killing %1", _name];
_tkill = format["if (name player == '%1') then
{
	if (alive player) then { player SetDamage 1.1;};
};", _name];
[_tkill] execVM "scr\exec.sqf";
That will get you kicked for Set Damage restriction > 1

Quote Originally Posted by furiouswai View Post
This one drops a player from 100m up in the air to kill them (no remote exc required). But you need to type their name into it manually:


Code:
private["_pList", "j", "i", "_pArray", "v", "_dir", "_pos"];
_pList = playableUnits;
j = count _pList;
i = 0;
_pArray = [];

for "i" from 0 to j do
    {
        v = _pList select i;
        v setVariable["lastPos",0, true];
        if(format[name v] == 'PLAYERNAMEHERE') then {
            _pos = getPos vehicle player;
            _pos = [(_pos select 0)-10*sin(_dir),(_pos select 1)-10*cos(_dir),55];
            v setPos _pos;

        }

    };
This should work A bit inefficient tho
See i said you needed a exec thyph0
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us