PDA

View Full Version : playerplaysoud problem


MerCy
05/10/2012, 12:28 PM
well this my code for player play sound it works fine but i dont want to hear after i click on spawn
i mean i want music to be stop when a guy spawn how to do that ?

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerColor( playerid, 0xFF66FFAA );
PlayerPlaySound( playerid, 1187, 0.0, 0.0, 0.0 );
SetPlayerPos(playerid,2111.6729,-1730.9321,18.0703);
SetPlayerCameraPos(playerid,2113.7356,-1734.0891,18.0703);
SetPlayerCameraLookAt(playerid,2111.6729,-1730.9321,18.0703);
SetPlayerFacingAngle(playerid,210.0);

Roel
05/10/2012, 12:29 PM
Use this at onplayerspawn

PlayerPlaySound(playerid,1063,0, 0, 0);

JaKe Elite
05/10/2012, 12:32 PM
OnPlayerSpawn


PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0);

MerCy
05/10/2012, 12:43 PM
Use this at onplayerspawn

PlayerPlaySound(playerid,1063,0, 0, 0);


emm no sound dosent stop when a player spawns :/

xMCx
05/10/2012, 12:45 PM
idk um try this
under OnPlayerSpawn
PlayerPlaySound(playerid, 0, 0.0, 0.0, 0.0);

MerCy
05/10/2012, 12:47 PM
guys i want music/sound but i want it to stop when a player is spawned

Jeffry
05/10/2012, 12:54 PM
public OnPlayerSpawn(playerid)
{
PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0);
return 1;
}

ewida
05/10/2012, 12:54 PM
can give me the sound im want to put in my server

Beljulji
05/10/2012, 01:28 PM
if you added PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0); onplayerrequest class then add that too onplayerspawn PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0); all same

MerCy
05/10/2012, 05:06 PM
can give me the sound im want to put in my server

1187

if you added PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0); onplayerrequest class then add that too onplayerspawn PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0); all same

same problem bro :/