Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 55
  1. #31
    xLithium's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    146
    Reputation
    10
    Thanks
    26
    My Mood
    Relaxed
    Quote Originally Posted by ikillindreams View Post
    As You are new to scripting i dont think you understand...


    -thePlayer Reffers to a selection on my menu (this is MY menu's code)
    and name _x reffers to each player
    Yep you're right, I don't understand at all. Just trying to help

  2. #32
    ikillindreams's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    United Stats
    Posts
    190
    Reputation
    10
    Thanks
    556
    My Mood
    Aggressive
    animation doesnt play ... hmmmmm

  3. #33
    svtfan's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    416
    Reputation
    12
    Thanks
    52
    My Mood
    Happy
    this is so awesome. i shall try and figure this out with you guys!

  4. #34
    ashy1's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    64
    Reputation
    10
    Thanks
    6
    My Mood
    Doh
    Quote Originally Posted by ikillindreams View Post
    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

    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";
    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.

  5. #35
    Woodhouse's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Swagtown, Yoloville
    Posts
    2,832
    Reputation
    228
    Thanks
    3,247
    My Mood
    Sick
    Quote Originally Posted by ashy1 View Post
    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

    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";
    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.

  6. #36
    Drithric's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    United States
    Posts
    160
    Reputation
    10
    Thanks
    14
    My Mood
    Happy
    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.

  7. #37
    ashy1's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    64
    Reputation
    10
    Thanks
    6
    My Mood
    Doh
    Quote Originally Posted by Drithric View Post
    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.
    mine works just no sound, would you post yours or keeping it to yourself?

  8. #38
    m0nky's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    53
    Reputation
    10
    Thanks
    24
    yes i was testing this skript earlier

    95% credit hangender ^_^

  9. #39
    typh0's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    231
    Reputation
    10
    Thanks
    35
    My Mood
    Yeehaw
    Quote Originally Posted by qaper123 View Post
    If that's the command for it then I guess this would work

    Code:
    player switchmove "ActsPercMstpSnonWpstDnon_suicide1B";
    sleep 3.9;
    playsound "gunshot";
    sleep 1.5;
    player setdamage 1.0;


    Server will kick you for setting the damage to 1. Setting it to 0.99 has the same effect but without the kick


    Quote Originally Posted by ashy1 View Post
    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

    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";
    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.

    The syntax for playMove is
    Code:
    soldierOne playMove "Stand"
    Note the single " marks not double. Could be your problem.

    https://community.bistudio.com/wiki/playMove
    Last edited by typh0; 01-24-2013 at 03:42 AM.

  10. #40
    m0nky's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    53
    Reputation
    10
    Thanks
    24
    Quote Originally Posted by typh0 View Post
    The syntax for playMove is
    Code:
    soldierOne playMove "Stand"
    Note the single " marks not double. Could be your problem.

    https://community.bistudio.com/wiki/playMove
    notsureifsrs, in that script it would cause error

  11. #41
    ashy1's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    64
    Reputation
    10
    Thanks
    6
    My Mood
    Doh
    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?

  12. #42
    m0nky's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    53
    Reputation
    10
    Thanks
    24
    Quote Originally Posted by ashy1 View Post
    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?
    wrap [] spawn {} around ur code

  13. #43
    ashy1's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    64
    Reputation
    10
    Thanks
    6
    My Mood
    Doh
    Quote Originally Posted by m0nky View Post
    wrap [] spawn {} around ur code
    this works

    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";
    and mass suicide script (teleports everyone too you then they all say goodbuy and shoot themselfs)
    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";
    thanks for your help m0nky
    Last edited by ashy1; 01-24-2013 at 04:43 AM.

  14. The Following 2 Users Say Thank You to ashy1 For This Useful Post:

    token86 (01-24-2013),xLithium (01-24-2013)

  15. #44
    TheElement926's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    27
    Reputation
    10
    Thanks
    0
    My Mood
    Lurking
    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.

  16. #45
    token86's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    2
    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

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. [Request] Kill Self Script
    By Synchorizer1 in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 6
    Last Post: 09-07-2012, 07:56 PM
  2. Replies: 41
    Last Post: 10-05-2009, 07:49 AM
  3. Can somebody make some hacks that allow you to kill your opponent with a gun?
    By apocalypsist in forum WarRock - International Hacks
    Replies: 2
    Last Post: 03-25-2009, 07:51 AM
  4. Killing them self
    By Matt1243 in forum General
    Replies: 5
    Last Post: 01-20-2009, 03:57 AM
  5. WHERE MPGH LIVES ADD YOUR SELF
    By Mikeck901323 in forum General
    Replies: 27
    Last Post: 02-21-2008, 08:15 PM