Results 1 to 7 of 7
  1. #1
    bonobo58's Avatar
    Join Date
    Feb 2013
    Gender
    female
    Posts
    44
    Reputation
    10
    Thanks
    1
    My Mood
    Angelic

    How to add sound in game with a hack

    Hi , I'm trying to add Sound ingame with a srollmenu hack but it look like it doesnt work , i already tried it :

    fn_music1 = {
    [{
    playSound "Track01_Proteus";
    sleep 5;
    }, "BIS_fnc_SPAWN", true, false] call BIS_fnc_MP;
    };


    ////////////////


    fn_music8 = {
    [{
    playSound "\A3\music_f\Music\AmbientTrack01_F.ogg";
    sleep 5;
    }, "BIS_fnc_SPAWN", true, false] call BIS_fnc_MP;
    };

    ///////////////////

    fn_music11 = {
    [{
    playSound "A3\Missions_F_EPA\data\music\defcon";
    sleep 5;
    }, "BIS_fnc_SPAWN", true, false] call BIS_fnc_MP;
    };


    I tried with the 3 ways but still doesnt work , can you help me please ?

  2. #2
    5^*hdrrfgfbs#%R$'s Avatar
    Join Date
    Jul 2014
    Gender
    male
    Posts
    382
    Reputation
    10
    Thanks
    885
    whoops forgot about this.
    1. [ ? no ending just random
    2. remove [ and try lel?

  3. #3
    bonobo58's Avatar
    Join Date
    Feb 2013
    Gender
    female
    Posts
    44
    Reputation
    10
    Thanks
    1
    My Mood
    Angelic
    I will try it as soon as possible thanks , but even with [ , it tell me that is the wrong sound emplacement " sound not found"

  4. #4
    Jme's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Location
    Balls Deep
    Posts
    1,214
    Reputation
    35
    Thanks
    9,758
    If you want to play music on only your own player, you would do this

    Code:
    playSound "Track01_Proteus";
    If you wanted to play music on all players, you need to remotely execute your code, here is the same script as above, but remotely executed

    Code:
    [{ playSound "Track01_Proteus"; }, "BIS_fnc_SPAWN", true, false] call BIS_fnc_MP;
    
    The problem is, your remote execution method is outdated, so whilst it might work in the editor, it certainly wont work in a server.

    The top example you pasted looks like it would have worked like 6-9 months ago, but not now. Also, I see no reason to have sleep 5 so I took it out for you, its useless as far as i can tell

    Hope this helps

  5. #5
    bonobo58's Avatar
    Join Date
    Feb 2013
    Gender
    female
    Posts
    44
    Reputation
    10
    Thanks
    1
    My Mood
    Angelic
    Thanks Jme, I will try it as soon as possible

  6. #6
    Jme's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Location
    Balls Deep
    Posts
    1,214
    Reputation
    35
    Thanks
    9,758
    Quote Originally Posted by bonobo58 View Post
    Thanks Jme, I will try it as soon as possible
    all good

    but thats not working code, its outdated, but thats maybe why its not working for you

  7. #7
    Jim Morrison's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Canterlot, Equestria
    Posts
    12,444
    Reputation
    1090
    Thanks
    3,336
    Believe this is solved.
    /Closed


    MPGH Staff History:
    Minion: 02-12-2013 - 6-28-2013
    Former Staff: 6-28-2013 - 7-14-2014
    Minion: 7-14-2014 - 1-3-2015
    Minion+: 1-3-2015 - 6-1-2015
    Moderator: 6-1-2015 - 10-2-2016
    Global Moderator: 10-2-2016 - Current

    Current Sections:
    DayZ Mod & Standalone Hacks & Cheats
    BattleOn Games Hacks, Cheats & Trainers
    Minecraft Hacks
    Other Semi-Popular First Person Shooter Hacks
    Blackshot Hacks & Cheats
    Need For Speed World Hacks
    Other First Person Shooter Hacks
    CounterStrike: Global Offensive Hacks
    Garry's Mod Hacks & Cheats


    Donating:
    If you want to donate money to me I take Bitcoin & Paypal, PM me for either of these if you're interested and thanks.
    Top Donators: (Awesome People)
    FanticSteal $75.00
    smurf_master $58.00 <- Best DayZ Gear Seller
    Fujiyama $25.00
    [MPGH]Black $10.00
    [MPGH]Hova $10.00
    xJudgez $4.54
    [MPGH]Normen's Sheep $3.50
    eminemlover $1.50


    Brony?
    https://www.mpgh.net/forum/groups/1728-mpgh-bronies.html

Similar Threads

  1. How to login to the game with AOL (For europe)
    By Sarhamam in forum Vindictus Discussions
    Replies: 13
    Last Post: 04-22-2011, 11:17 AM
  2. How can I add Sounds Kills game?
    By F-I-R-E in forum Call of Duty Modern Warfare 2 Discussions
    Replies: 3
    Last Post: 02-28-2011, 02:09 PM
  3. How to add a WarRock Code [with screens]
    By docoon in forum WarRock Tutorials
    Replies: 9
    Last Post: 12-16-2010, 03:56 AM
  4. [Tutorial] How to add a WarRock Code [with screens]
    By docoon in forum WarRock Discussions
    Replies: 7
    Last Post: 10-19-2010, 06:24 AM
  5. [HELP]How to add sounds?[Solved]
    By DeathHunter in forum Visual Basic Programming
    Replies: 23
    Last Post: 06-30-2010, 11:07 PM