playerplaysoud problem
#1

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);
Reply
#2

Use this at onplayerspawn
pawn Код:
PlayerPlaySound(playerid,1063,0, 0, 0);
Reply
#3

OnPlayerSpawn

pawn Код:
PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0);
Reply
#4

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 :/
Reply
#5

idk um try this
under OnPlayerSpawn
pawn Код:
PlayerPlaySound(playerid, 0, 0.0, 0.0, 0.0);
Reply
#6

guys i want music/sound but i want it to stop when a player is spawned
Reply
#7

pawn Код:
public OnPlayerSpawn(playerid)
{
    PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0);
    return 1;
}
Reply
#8

can give me the sound im want to put in my server
Reply
#9

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
Reply
#10

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 :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)