SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 25/01/2010, 03:10 PM   #1
maltheus.
Big Clucker
 
Join Date: Dec 2009
Posts: 104
Reputation: 0
Default Sound

I use on player spawn id 1097 music
And how can i stop it when player spawn?
maltheus. is offline  
Old 25/01/2010, 03:13 PM   #2
Jeffry
High-roller
 
Jeffry's Avatar
 
Join Date: Oct 2009
Location: Germany
Posts: 1,571
Reputation: 68
Default Re: Sound

Its a music right? Then you need to stop it. I think its id 1098 at OnPlayerSpawn. But not sure.
__________________
Jeffry is offline  
Old 25/01/2010, 03:17 PM   #3
maltheus.
Big Clucker
 
Join Date: Dec 2009
Posts: 104
Reputation: 0
Default Re: Sound

I dont wanna change music i just wanna to music stop when player spawn
maltheus. is offline  
Old 25/01/2010, 03:31 PM   #4
CrucixTM
Huge Clucker
 
CrucixTM's Avatar
 
Join Date: Jan 2010
Location: Denmark
Posts: 294
Reputation: 7
Default Re: Sound

Yes, sounds works like this:

You play sound XXX_XXX_PLAY(or START or whatever)
to stop the sound, you play XXX_XXX_STOP

So sound 1097 would be stopped by playing sound 1098.
__________________
Experienced mapper - Mapping anything for as low as 1 Euro(€)! - PM me if you need something mapped properly!
CrucixTM is offline  
Old 25/01/2010, 03:44 PM   #5
Jeffry
High-roller
 
Jeffry's Avatar
 
Join Date: Oct 2009
Location: Germany
Posts: 1,571
Reputation: 68
Default Re: Sound

Yep, thats what i said. ID 1098 is a STOP signal for the server and he stops playing the music.
__________________
Jeffry is offline  
Old 25/01/2010, 03:54 PM   #6
maltheus.
Big Clucker
 
Join Date: Dec 2009
Posts: 104
Reputation: 0
Default Re: Sound

Now music ever dont work
maltheus. is offline  
Old 25/01/2010, 04:20 PM   #7
Jeffry
High-roller
 
Jeffry's Avatar
 
Join Date: Oct 2009
Location: Germany
Posts: 1,571
Reputation: 68
Default Re: Sound

Post your code.
__________________
Jeffry is offline  
Old 25/01/2010, 04:24 PM   #8
maltheus.
Big Clucker
 
Join Date: Dec 2009
Posts: 104
Reputation: 0
Default Re: Sound

Quote:
PlayerPlaySound(playerid, 1097, -1262.8296,46.6005,32.882;
PlayerPlaySound(playerid, 1098, -1262.8296,46.6005,32.882;
I know is wrong
maltheus. is offline  
Old 25/01/2010, 04:37 PM   #9
On_Top_Non_Stop
Huge Clucker
 
Join Date: Sep 2007
Posts: 368
Reputation: 2
Default Re: Sound

Under OnPlayerConnect add PlayerPlaySound(playerid, 1097, -1262.8296,46.6005,32.882;
And under OnPlayerSpawn add PlayerPlaySound(playerid, 1098, -1262.8296,46.6005,32.882;
On_Top_Non_Stop is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound for all! WThieves Help Archive 4 24/12/2009 01:52 PM
Help with sound plz. Doppeyy Help Archive 5 11/08/2009 12:17 AM
Sound Puzi Help Archive 1 09/07/2009 09:28 AM
Sound -eXo Help Archive 1 26/05/2009 06:31 PM
sound [LNL]Remulis Server Support 4 24/03/2009 09:47 PM


All times are GMT. The time now is 10:06 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.