PLAY SOUND
#1

ok i made this map for my new years eve party now i wanna know how i make a shoutcast stream within a radius can you help please?
Reply
#2

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) {
    if(IsPlayerConnected(i)) {
        if(IsPlayerInRangeOfPoint(i,10,pointX,pointY,pointZ)) {
            PlayAudioStreamForPlayer(i,audio here);
        }
    }
}
Put this in a timer or a command. ; )
Reply
#3

could you possibly make it for me like e.g. /christmas then it plays? and for poinx,pointy etc.. do i add my own co ords?

P.S. this instead of a command where would i add it in a FS?
Reply
#4

Add PlayAudioStreamForPlayer in a command or OnPlayerSpawn.
Reply
#5

Quote:

Add PlayAudioStreamForPlayer in a command or OnPlayerSpawn.

kinda helpful thanks but i dont know how to make the command can someone make me a full cmd where i only have to add X,Y,Z and the stream url?
Reply
#6

it is your choice, OnPlayerSpawn they are going to hear the music when they spawn and if you doit with a cmd you will heard it when u tipe the command.
Reply
#7

id like onplayerspawn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)