PlayerPlaySound
#1

Solved

Code:
public OnPlayerRequestClass(playerid, classid)
{
        PlayerPlaySound(playerid, 1187, -1370.2362,-256.3250,14.1440);
	SetPlayerPos(playerid, 1962.30, 1342.95, 15.48);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerFacingAngle(playerid, 90.0);
	
	return 1;
}
Reply
#2

In this case:
pawn Code:
PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0);
On the OnPlayerSpawn
Reply
#3

OnPlayerSpawn:

PlayerPlaySound(playerid, 1188,0,0,0);

Try it,it works for me.

blackwave,get it fast XD.
Reply
#4

got answered above ^
Reply
#5

Quote:
Originally Posted by blackwave
View Post
In this case:
pawn Code:
PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0);
On the OnPlayerSpawn
Thanks,You reply to every one of my problems :P
Reply
#6

Quote:
Originally Posted by Noss*
View Post
Thanks,You reply to every one of my problems :P
Since I know, I do reply :P






This forum requires that you wait 60 seconds between posts. Please try again in 2 seconds.
e__e
Reply
#7

Quote:
Originally Posted by blackwave
View Post
Since I know, I do reply :P






This forum requires that you wait 60 seconds between posts. Please try again in 2 seconds.
e__e
Damn it doesn't work for some reason.I tried 3 times

Quote:

public OnPlayerSpawn(playerid)
{
PlayerPlaySound(playerid, 1187, -1370.2362,-256.3250,14.1440);
return 1;
}

Reply
#8

LOL Why that coords?

Just PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0);
Reply
#9

Quote:
Originally Posted by Logitech90
View Post
LOL Why that coords?

Just PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0);
Means it's somewhere "Null". Not defined, guess I lol. Answer your topic. I posted there another code.
Reply
#10

I don't think you guys understand me :P.I want the music to play while i'm changing skin not when i spawn,I don't know why your telling me to put it onplayerspawn.I changed the coords but it doesn't make a difference.

Quote:

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

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)