Results 1 to 7 of 7
  1. #1
    codGmer's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    lol
    Posts
    45
    Reputation
    10
    Thanks
    0
    My Mood
    Relaxed

    play sound in mod

    Hello,

    I am making a mod where you have every 2 minutes wallhack enabled
    it loops, but now i want to have sound when the wallhack enables
    the sound: ac130_plt_scanrange (guy who says Set scan range.)

    Code:
    sound = "ac130_plt_scanrange";
    doesnt seem to work

    here is the thread:

    Code:
    verhaaltwee()	
    {
       self endon(" disconnect" );
       self endon(" death" );
    	for(;;)
        {
    	wait 120;
    	self iPrintlnBold( "wallhack turned on for 50 seconds");
    	sound = "ac130_plt_scanrange"; 
    	self ThermalVisionFOFOverlayOn();
    	wait 50;
    	self ThermalVisionFOFOverlayOff();
    	self iPrintlnBold( "wallhack turned off");
    	}
    }
    could you guys help me out whit the sound?
    Last edited by codGmer; 02-18-2011 at 01:53 PM.

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,329
    My Mood
    Breezy
    self playLocalSound("ac130_plt_scanrange");

    ?
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  3. #3
    codGmer's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    lol
    Posts
    45
    Reputation
    10
    Thanks
    0
    My Mood
    Relaxed
    hmm it does not work

    Code:
    wallhackextra()	
    {
       self endon(" disconnect" );
       self endon(" death" );
    	for(;;)
        {
    	wait 150;
    	self iPrintlnBold( "^1wallhack ^8turned on for 50 seconds");
    	self playLocalSound("ac130_plt_scanrange");
    	self ThermalVisionFOFOverlayOn();
    	wait 50;
    	self iPrintlnBold( "^8wallhack turned off");
    	self playLocalSound("ac130_plt_targetreset");
    	self ThermalVisionFOFOverlayOff();
    	}
    }

  4. #4
    KickerOfAsses's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    5
    My Mood
    Lurking
    http://www.mpgh.net/forum/308-call-d...ing-codes.html

    Test with a different sound code?

  5. #5
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    self playlocalsound("ac130_plt_scanrange"); maybe

  6. #6
    DEREK TROTTER's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    37
    Reputation
    10
    Thanks
    203
    My Mood
    Hungover
    this is how i play sounds like that:

    Code:
    TF( soundalias, saytext ){prefix = maps\mp\gametypes\_teams::getTeamVoicePrefix( self.team );self playSound( prefix+soundalias );self sayTeam( saytext );}
    Code:
    chat1(){self TF("mp_cmd_fallback", "Fall back!");}
    chat2(){self TF("mp_cmd_movein", "Move in!");}
    chat3(){self TF("mp_cmd_suppressfire", "Suppressing Fire!");}
    chat4(){self TF("mp_cmd_attackleftflank", "Attack left flank!");}
    chat5(){self TF("mp_cmd_attackrightflank", "Attack Right flank!");}
    chat6(){self TF("mp_cmd_holdposition", "Hold Position!");}
    chat7(){self TF("mp_cmd_regroup", "Regroup!");}
    chat8(){self TF("ac130_fco_directhits", "Yeah, Direct Hit!");}
    chat9(){self TF("ac130_fco_takehimout", "Take him out!");}
    chat10(){self TF("ac130_fco_oopsiedaisy", "Oopsy Daisy!");}
    chat11(){self TF("ac130_fco_gotarunner", "Runner!!!");}
    chat12(){self TF("ac130_fco_lightemup", "Light em Up!");}
    chat13(){self TF("ac130_plt_gottahurt", "Thats gotta hurt!");}
    chat14(){self TF("ac130_fco_guyrunnin", "Guy running");}
    chat15(){self TF("ac130_fco_nailthoseguys", "Nail those guys!");}
    chat16(){self TF("ac130_plt_copysmoke", "Smoke em!");}

  7. #7
    codGmer's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    lol
    Posts
    45
    Reputation
    10
    Thanks
    0
    My Mood
    Relaxed
    i guess the code just doesnt work.
    the other codes whit mp in it work

    this is how i play sounds like that:

    Code:
    TF( soundalias, saytext ){prefix = maps\mp\gametypes\_teams::getTeamVoicePrefix( self.team );self playSound( prefix+soundalias );self sayTeam( saytext );}
    Code:
    chat1(){self TF("mp_cmd_fallback", "Fall back!");}
    chat2(){self TF("mp_cmd_movein", "Move in!");}
    chat3(){self TF("mp_cmd_suppressfire", "Suppressing Fire!");}
    chat4(){self TF("mp_cmd_attackleftflank", "Attack left flank!");}
    chat5(){self TF("mp_cmd_attackrightflank", "Attack Right flank!");}
    chat6(){self TF("mp_cmd_holdposition", "Hold Position!");}
    chat7(){self TF("mp_cmd_regroup", "Regroup!");}
    chat8(){self TF("ac130_fco_directhits", "Yeah, Direct Hit!");}
    chat9(){self TF("ac130_fco_takehimout", "Take him out!");}
    chat10(){self TF("ac130_fco_oopsiedaisy", "Oopsy Daisy!");}
    chat11(){self TF("ac130_fco_gotarunner", "Runner!!!");}
    chat12(){self TF("ac130_fco_lightemup", "Light em Up!");}
    chat13(){self TF("ac130_plt_gottahurt", "Thats gotta hurt!");}
    chat14(){self TF("ac130_fco_guyrunnin", "Guy running");}
    chat15(){self TF("ac130_fco_nailthoseguys", "Nail those guys!");}
    chat16(){self TF("ac130_plt_copysmoke", "Smoke em!");}
    hhm i dont get this one.
    is this like the voices of cod 2?
    but than for mw2

    when i make a new Thread whit this code it gives syntax error