Audio stream question
#2

Put this on top of your gamemode

Код:
#include <foreach>
And replace your /music cmd with this

Код:
if(!strcmp(cmdtext, "/music", true, 6))
	{
        if(!cmdtext[6])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /music [url]");
        new audio[128];
        format(audio, sizeof(audio), "%s", cmdtext[7]);
        foreach(Player, i)
		{
		PlayAudioStreamForPlayer(i, audio);
		}
        return 1;
	}
Tried it ingame and it worked
Reply


Messages In This Thread
Audio stream question - by Rabbayazza - 16.03.2014, 03:09
Re: Audio stream question - by Gus_Stone - 16.03.2014, 03:42
Re: Audio stream question - by Rabbayazza - 16.03.2014, 03:52
Re: Audio stream question - by Gus_Stone - 16.03.2014, 03:55
Re: Audio stream question - by Rabbayazza - 16.03.2014, 03:57
Re: Audio stream question - by Rabbayazza - 16.03.2014, 04:02
Re: Audio stream question - by Gus_Stone - 16.03.2014, 04:03
Re: Audio stream question - by RoboN1X - 16.03.2014, 04:04
Re: Audio stream question - by Gus_Stone - 16.03.2014, 04:07
Re: Audio stream question - by Ceathor - 16.03.2014, 04:52

Forum Jump:


Users browsing this thread: 2 Guest(s)