Help me
#1

Hello guys im trying to make a Music wheen somene join, Music auto stop when the play spawned. So can anyone invite me smh?
Note : Im trying to learn Script.. I Tryed to make this sound script alot of times but just wasting time
Reply
#2

https://www.******.co.in/webhp?sourc...20on%20connect
Reply
#3

Quote:

PlayAudioStreamForPlayer(playerid, url[], FloatosX, FloatosY, FloatosZ , Float:distance, usepos)

This will auto-Stopp wheen the players spawned?
Reply
#4

Thats Easy as Cheezy let me show you bro :
Add this under OnPlayerRequestClass :
pawn Код:
PlayerPlaySound(playerid, 1097,-119.9460,23.1096,12.2238);
if u want him to dance too add this :
pawn Код:
PlayerPlaySound(playerid, 1097,-119.9460,23.1096,12.2238); // music!
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); // dancing animation
and to auto-stopmusic add this on "OnPlayerSpawn" :
pawn Код:
PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
ENJOY!
if it work tell me
Reply
#5

Naw nigga 'ApplyAnimation' Naw no anmation.. gonna try it
Reply
#6

Quote:

public OnPlayerRequestClass(playerid, classid)
{
PlayerPlaySound(playerid, 1097,-119.9460,23.1096,12.223;
return 1;
}

Quote:

public OnPlayerSpawn(playerid)
{
PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
return 1;
}

Quote:

thats Easy as Cheezy

xD Showowowowow

Like that And where i can put my Own music Url?
Reply
#7

If you want to play music through an url you need to use PlayAudioStreamForPlayer and then to stop it you use StopAudioStreamForPlayer inside the OnPlayerSpawn callback
Reply
#8

Mr Celpillado gonna try this :P ty
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)