playerplaysoud problem -
MerCy - 05.10.2012
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);
Re: playerplaysoud problem -
Roel - 05.10.2012
Use this at onplayerspawn
pawn Код:
PlayerPlaySound(playerid,1063,0, 0, 0);
Re: playerplaysoud problem -
JaKe Elite - 05.10.2012
OnPlayerSpawn
pawn Код:
PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0);
Re: playerplaysoud problem -
MerCy - 05.10.2012
Quote:
Originally Posted by Roel
Use this at onplayerspawn
pawn Код:
PlayerPlaySound(playerid,1063,0, 0, 0);
|
emm no sound dosent stop when a player spawns :/
Re: playerplaysoud problem -
xMCx - 05.10.2012
idk um try this
under OnPlayerSpawn
pawn Код:
PlayerPlaySound(playerid, 0, 0.0, 0.0, 0.0);
Re: playerplaysoud problem -
MerCy - 05.10.2012
guys i want music/sound but i want it to stop when a player is spawned
Re: playerplaysoud problem -
Jeffry - 05.10.2012
pawn Код:
public OnPlayerSpawn(playerid)
{
PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0);
return 1;
}
Re: playerplaysoud problem -
ewida - 05.10.2012
can give me the sound im want to put in my server
Re: playerplaysoud problem -
Beljulji - 05.10.2012
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
Re: playerplaysoud problem -
MerCy - 05.10.2012
Quote:
Originally Posted by ewida
can give me the sound im want to put in my server
|
1187
Quote:
Originally Posted by Beljulji
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 :/