Jump to content
  • 0

intrebare legata de streamer audio by incognito


shaun

Question

1.Am facut tot ce trebe, merge numai ca as vrea sa dau numai yo /play si etc, si sa se auda la toata lumea , nu toata lumea sa deie /play 1 0 0 0,/play 1 0 0 0,/play 1 0 0 0,/play 1 0 0 0,/play 1 0 0 0,/play 1 0 0 0,/play 1 0 0 0,/play 1 0 0 0 etc.

VA ROG HELP!

cum pot sa fac in asa fel incat toti (care au programu ala .exe audioplugin) sa auda doar cand dau yo /play

ca nu aud aia cand dau yo /play ci doar cand dau ei

MS!

u78ch.jpg

CHECK MY CHANNEL!

http://www.youtube.com/user/amysoica

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

dcmd_play(playerid, params[])

{

#pragma unused playerid

new

audioid,

bool:downmix,

bool:loop,

bool:pause;

if (sscanf(params, "dddd", audioid, pause, loop, downmix))

{

SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /play <audioid> <pause (0/1)> <loop (0/1)> <downmix (0/1)>");

return 1;

}

Audio_Play(playerid, audioid, pause, loop, downmix);

return 1;

}

u78ch.jpg

CHECK MY CHANNEL!

http://www.youtube.com/user/amysoica

Link to comment
Share on other sites

N-ai auzit de [ code]script [ /code] ?

dcmd_play(playerid, params[])
{
	if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"ERROR: You are not RCON Admin!"); //doar pentru adminii rcon
	new audioid, bool:downmix, bool:loop, bool:pause;
	if (sscanf(params, "dddd", audioid, pause, loop, downmix))
	{
		SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /play <audioid> <pause (0/1)> <loop (0/1)> <downmix (0/1)>");
		return 1;
	}
	for(new i; i<MAX_PLAYERS; i++) { Audio_Play(i, audioid, pause, loop, downmix); } //acesta este un loop
	return 1;
}

*Wiki loop: http://wiki.sa-mp.com/wiki/Loop

Link to comment
Share on other sites

1.am zis la nuj care post ca is noob si un pic retardat :|

2.am facut ce ai zis dar nu se aude la ceilalti playeri melodia mea

dcmd_play(playerid, params[])
{
   if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"ERROR: You are not RCON Admin!"); //doar pentru adminii rcon
   new audioid, bool:downmix, bool:loop, bool:pause;
   if (sscanf(params, "dddd", audioid, pause, loop, downmix))
   {
      SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /play <audioid> <pause (0/1)> <loop (0/1)> <downmix (0/1)>");
      return 1;
   }
   for(new i; i<MAX_PLAYERS; i++) { Audio_Play(i, audioid, pause, loop, downmix); } //acesta este un loop
   return 1;
}

u78ch.jpg

CHECK MY CHANNEL!

http://www.youtube.com/user/amysoica

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.