SA-MP Forums Archive
PlayerPlaySound - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PlayerPlaySound (/showthread.php?tid=329166)



PlayerPlaySound - Eiy Mard - 27.03.2012

hey .. I have some problems ... how can I get him to stop PlayerPlaySound ... that's my problem now .. help me please... sorry for my bad english

Код:
example: PlayerPlaySound (1130, 0,0,0);



Re: PlayerPlaySound - emokidx - 27.03.2012

try this

Quote:
Originally Posted by alpha500delta
Посмотреть сообщение
Set the music +1, so it would be i have this PlayerPlaySound(playerid, 1186, 0.0, 0.0, 5.0);
And set under OnPlayerSPawn or make a /stopmusic command

@ Clum# You cant set music to play at a certain position, only on players
https://sampforum.blast.hk/showthread.php?tid=206817


Re: PlayerPlaySound - sniperwars - 27.03.2012

pawn Код:
if(strcmp(cmdtext, "/stopmusic", true, 10) == 0)
{
   PlayerPlaySound(playerid, 1186, 0.0, 0.0, 5.0);
   return 1;
}
Or you can add it below the public OnPlayerSpawn callback.

pawn Код:
public OnPlayerConnect(playerid)
{
   PlayerPlaySound(playerid, 1186, 0.0, 0.0, 5.0);
   //Rest of code here//
   return 1;
}



Re: PlayerPlaySound - Eiy Mard - 27.03.2012

i mean this .. how to stop it ?

Код:
	if (strcmp(cmdtext, "/plant", true) == 0)
	{
	    if(IsPlanted[id] == 0)
	    {
		    if(GetPlayerTeam(playerid) == TEAM_RED)
		    {
			 	if(IsPlayerInRangeOfPoint(playerid, 7.0, -1304.4406,2546.2034,90.3281))
				{
			 		IsPlanted[id] = 1;
			 		BombTimer = SetTimer("Bomb",30000,false);
			 		SendClientMessageToAll(COLOR_BLUE, ".: The Bomb has been planted :.");
      				        PlayerPlaySound(playerid ,1183,0,0,0); //****HERE****//
			 		BombC = CreateDynamicCP(-1304.4406,2546.2034,90.3281, 1.5, -1, -1, -1, 100.0);
			 		return 1;
				}
				else return SendClientMessage(playerid, COLOR_ERROR, ".: [ERROR]: You must in CT Generator Room :.");
			}
			else return SendClientMessage(playerid, COLOR_ERROR, ".: [ERROR]: Only Terrorist can use this command :.");
		}
		else return SendClientMessage(playerid, COLOR_ERROR, ".: [ERROR]: Bomb has been planted :.");
	}

	return 0;
}



Re: PlayerPlaySound - Fires - 27.03.2012

To stop this music use
PlayerPlaySound(playerid ,1184,0,0,0);

1183 to start, 1184 to stop


Re: PlayerPlaySound - Eiy Mard - 28.03.2012

LOLz .. ahh .....


Re: PlayerPlaySound - Shahil kumar - 06.04.2012

u have to make a dialog i know how to do this really will