Kill Your Self Script
animation doesnt play ... hmmmmm
remove line playsound "gunshot";
something wrong with it not sure what
---------- Post added at 11:52 PM ---------- Previous post was at 11:45 PM ----------
okay so i got it working with monkey menu target other player
slight problem though it does not kill them or play a sound they just falll because i could not get it to play the animation with this it would just instanly kill you.
something wrong with it not sure what
---------- Post added at 11:52 PM ---------- Previous post was at 11:45 PM ----------
okay so i got it working with monkey menu target other player
Code:
_name = _this select 0;
hint format ["%1 is now killing himself", _name];
_suicide = format ["if (name player == '%1') then
{
cutText [""Just die. go on, kill your self!!!!"", ""PLAIN"", 2];
player playMove ""ActsPercMstpSnonWpstDnon_suicide1B"";
};", _name];
[_suicide] execVM "scr\exec.sqf";
this is so awesome. i shall try and figure this out with you guys!
I have this script. All the scripts posted will not work. The one i have pulls out a glock they reload it and shoot them selves in the head its fucking hilarious.
yes i was testing this skript earlier
95% credit hangender ^_^
95% credit hangender ^_^
Server will kick you for setting the damage to 1. Setting it to 0.99 has the same effect but without the kick
The syntax for playMove is
Code:
soldierOne playMove "Stand"
http://community.bistudio.com/wiki/playMove
yeah it needs both quotes cause one set is removed as its passed into the RE, only problem is I cant get sleep to work in RE everything just happend, like my message shows i die then i start animation as i have respawniging in 54321 screen.
anyone know how to use sleep i; within RE?
anyone know how to use sleep i; within RE?
this works
and mass suicide script (teleports everyone too you then they all say goodbuy and shoot themselfs)
thanks for your help m0nky
Code:
_name = _this select 0;
hint format ["%1 is now killing himself", _name];
_suicide = format ["if (name player == '%1') then
{
cutText [""Just die. go on, kill your self!!!!"", ""PLAIN"", 2];
player switchmove ""ActsPercMstpSnonWpstDnon_suicide1B"";
};", _name];
[_suicide] execVM "scr\exec.sqf";
sleep 4;
_gunshot = format ["if (name player == '%1') then
{
playsound ""gunshot"";
};", _name];
[_gunshot] execVM "scr\exec.sqf";
sleep 2;
_kill = format ["if (name player == '%1') then
{
player setdamage 0.99;
};", _name];
[_kill] execVM "scr\exec.sqf";
Code:
_pos = getPosATL player;
hint "Teleporting All";
_tp = format ["if (isServer) then
{
{
if (getPlayerUID _x != """") then
{
(vehicle _x) setPos [(%1 select 0) + random 15, (%1 select 1) + random 15, %1 select 2];
};
} forEach ([6800, 9200, 0] nearEntities [[""AllVehicles""], 11000]);
};", _pos];
[_tp] execVM "scr\exec.sqf";
sleep 1;
_list = call compile preprocessFileLineNumbers "scr\list.sqf";
hint " Committing Mass Suicide";
_ksall = format["if !(getPlayerUID player in %1) then
{
cutText [""Just die. go on, kill your self!!!!"", ""PLAIN"", 2];
player switchmove ""ActsPercMstpSnonWpstDnon_suicide1B"";
};", _list];
[_ksall] execVM "scr\exec.sqf";
sleep 4;
_gunshot = format["if !(getPlayerUID player in %1) then
{
playsound ""gunshot"";
};", _list];
[_gunshot] execVM "scr\exec.sqf";
sleep 2;
_kill = format["if !(getPlayerUID player in %1) then
{
player setdamage 0.99;
};", _list];
[_kill] execVM "scr\exec.sqf";
I have honestly never seen this much help for one another in a long time. Usually it would be like "Gtfo" or "Learn to code it yourself you lazy bastard" Good job guys.
The mass tele and death works a treat. Looks soo funny ha. But cant seem to get the single target one to work. But thanks 

This thread is closed for replies.

