Results 1 to 7 of 7
  1. #1
    mohammadhosin's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    1
    My Mood
    Pensive

    PLAY MUSIC IN GAME

    Hi

    how play sound/music in game?

    or Stop sound when start map for MP ?

    I have some script for this but don't know use it
    or sond list for use this

    Code:
    leaderDialog( "hz_mp_nsvictory_1" );
    
    self thread play_loop_sound_on_entity( "engine_belt_run" );
    
    self PlaySound("Dirt_skid","skidsound",true);
    
    self PlaySoundToPlayer( "frag_out", self );
    
    self PlaySoundToTeam( "frag_out", "axis", self );
    
    MusicPlay( "redsquare_dark", false );
    
    MusicStop( 3 );
    
    StopLoopSound();
    
    AND More

  2. #2
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    158
    Eh... you just gave us a way of how to play sounds.
    Isn't that what you asked?

    Quote Originally Posted by mohammadhosin View Post
    or Stop sound when start map for MP ?
    Do you mean that you want some custom music to play while you're in the lobby, and when you start a map it stops?
    You would have to either edit the .menu file of that (which currently isn't possible) or make a new sound file and rename it to the lobby screen sound.

  3. #3
    dsds1's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    63
    Reputation
    10
    Thanks
    2
    My Mood
    Fine
    just play , yeah
    sooo, whats is the real fake question?
    aaaaannddd, why don't you use
    Code:
    for(;;){ 
    self playSoundToLocal("xxxxxxx"); 
    wait 2; 
    self playSoundToLocal("xxxxxxxx"); 
    wait 2; 
    }
    Last edited by dsds1; 09-19-2011 at 09:51 AM.
    Press thanks if I helped you
    my English grammar not good

  4. #4
    mohammadhosin's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    1
    My Mood
    Pensive


    I know use how this code
    Code:
    player notifyOnPlayerCommand( "T", "chatmodepublic" );
    
    AND
    
    monitorPublicChatUse()
    {
    self endon( "disconnect" );
    for( ;; )
    {
    self waittill( "T" );
    iPrintLn( self.name + " is using the public chat" );
    
    self thread play_loop_sound_on_entity( "engine_belt_run" );
    
    
    }
    }
    but don't play sound
    I think ;There are a list sound for this code

  5. #5
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    166
    My Mood
    Angelic
    Code:
    Playsound()
    {
    
    self endon( "disconnect" );
    self notifyOnPlayerCommand( "W", "+forward" );
    
    for( ;; )
    {
    self waittill( "W" );
    
    self playSoundOnPlayers("mp_defeat");
    wait 5;
    self playSound( "mp_cmd_suppressfire");
    
    
    }
    }
    Just a short example.
    Last edited by mathieutje12; 09-20-2011 at 03:12 AM.

  6. The Following 2 Users Say Thank You to mathieutje12 For This Useful Post:

    mohammadhosin (09-21-2011),Nachos (09-20-2011)

  7. #6
    intervention61's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    285
    Reputation
    10
    Thanks
    875
    My Mood
    Cool
    if only i could understand what hes saying lol

  8. The Following User Says Thank You to intervention61 For This Useful Post:

    EpicPlayer (09-22-2011)

  9. #7
    Xray Hunter's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    37
    Reputation
    10
    Thanks
    0
    My Mood
    Angelic
    Quote Originally Posted by intervention61 View Post
    if only i could understand what hes saying lol
    Well, I don't really understand what you mean.
    Would you mind explain it to me?

    I suppose I might be able to help you.

Similar Threads

  1. Twisteds Mp3 Player "play music in game"
    By twistedkilla1 in forum Combat Arms Spammers, Injectors and Multi Tools
    Replies: 2
    Last Post: 09-04-2011, 12:45 PM
  2. Lets play the question game!
    By omlan in forum General
    Replies: 4
    Last Post: 01-22-2010, 08:08 PM
  3. [Request] How to lagg other people when playing fps online games?
    By kissfish in forum Suggestions, Requests & General Help
    Replies: 1
    Last Post: 01-05-2010, 02:51 AM
  4. Music Listening Game
    By AirCuddles in forum Spammers Corner
    Replies: 0
    Last Post: 06-30-2009, 07:15 PM
  5. who wants 2 play a OMA game?
    By hotfudge2100 in forum Combat Arms Hacks & Cheats
    Replies: 29
    Last Post: 12-20-2008, 09:51 AM