In-Game Music Player for ALL +REP
#1

I want a little system wherewhen I type /music [1-10] or something likethat, itwill playmy preset music or it will play it from a website. Anyone know of something likethis? Note:I want to playto everyone in the game, not just to me.

+REP!
Reply
#2

PlayAudioStreamForPlayer
Reply
#3

Quote:
Originally Posted by Tanush123
Посмотреть сообщение
Yes thanks I saw that but it says it's only for a specific player. I want it for all. Do you know how please?
Reply
#4

try this:
Код:
stock PlayAudioStreamForAll(url[])
{
    for(new i; i<GetMaxPlayers(); i++)
    {
        if(IsPlayerConnected( i ))
        {
            PlayAudioStreamForPlayer(i, url, x, y, z, distance);
        }
    }
    return 1;
   
}
Reply
#5

Okay thanks sir for this and what do I put for the x, y, z, an distance? Or do I leave it blank?
Reply
#6

leave them blank or put as 1.
Huh... what about my rep+1
Reply
#7

Okay thanks. I will try that and let you know how it goes. Then I will give you a +rep.
Reply
#8

Quote:
Originally Posted by Avi57
Посмотреть сообщение
try this:
Код:
stock PlayAudioStreamForAll(url[])
{
    for(new i; i<GetMaxPlayers(); i++)
    {
        if(IsPlayerConnected( i ))
        {
            PlayAudioStreamForPlayer(i, url, x, y, z, distance);
        }
    }
    return 1;
   
}
Nope that doesn't work. I was expecting it to play when the player joined the game but nope. But I actually wanted it so when I type /music 1 or /music 2 it will play my previously saved music and /stopmusic would stop the music.
Reply
#9

what command system are you using?

zcmd,ycmd,dcmd ?

strcmp?
Reply
#10

Quote:
Originally Posted by Jonny5
Посмотреть сообщение
what command system are you using?

zcmd,ycmd,dcmd ?

strcmp?
I'm using zcmd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)