Intro Music help !
#1

hello everyone , how do i add music intro for my server?
Thanks !
Reply
#2

PlayerPlaySound

Код:
1062 *Videogame music: Go Go Space Monkey* 
1068 *Videogame music: Duality* 
1076 *Videogame music: Letґs Get Ready to Bumble*
1097 *background music* 
1183 *Driving school results music* 
1185 *Bike and boat school results Music* 
1187 *Flight school results music*
Example:
pawn Код:
public OnPlayerConnect(playerid)
{
    PlayerPlaySound(playerid, 1183, 0, 0, 0);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    PlayerPlaySound(playerid, 1188, 0, 0, 0);
    return 1;
}
Reply
#3

Or PlayAudioStreamForPlayer(playerid, URL);
Reply
#4

Under OnPlayerConnect
Код:
PlayAudioStreamForPlayer(playerid,"url link"); //The link must contain .mp3 at the end
Under OnPlayerSpawn
Код:
StopAudioStreamForPlayer(playerid);
Reply
#5

Quote:
Originally Posted by Rittik
Посмотреть сообщение
Under OnPlayerConnect
Код:
PlayAudioStreamForPlayer(playerid,"url link"); //The link must contain .mp3 at the end
Under OnPlayerSpawn
Код:
StopAudioStreamForPlayer(playerid);
Seriously I just posted the same post.

Don't double post.
Reply
#6

Can you guys give me an link example? ty
Reply
#7

http://media.shax-dag.ru/Music/users...___59860_4.mp3

Under OnPlayerConnect

PlayAudioStreamForPlayer(playerid,"http://media.shax-dag.ru/Music/users/music___59860_4.mp3");

Under OnPlayerSpawn

StopAudioStreamForPlayer(playerid);
Reply
#8

this was mine , and im trying to put it on my PlayAudioStreamForPlayer(playerid,"file:///C:/Users/Chronized/Desktop/Rust%20IntroOutro%20Version%201.mp3");
im really confused , its not playing
Reply
#9

It should be a online url link ,not the mp3 file in your PC. Try the link which i posted above
Reply
#10

Quote:
Originally Posted by Rittik
Посмотреть сообщение
It should be a online url link ,not the mp3 file in your PC. Try the link which i posted above
Can you give me any weblink to upload this to net? i cant upload this to the link above your post , it say 403 forbidden something
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)