PlayerPlaySound - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PlayerPlaySound (
/showthread.php?tid=200558)
PlayerPlaySound -
Noss* - 18.12.2010
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;
}
Re: PlayerPlaySound -
blackwave - 18.12.2010
In this case:
pawn Code:
PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0);
On the OnPlayerSpawn
Re: PlayerPlaySound -
Face9000 - 18.12.2010
OnPlayerSpawn:
PlayerPlaySound(playerid, 1188,0,0,0);
Try it,it works for me.
blackwave,get it fast XD.
Re: PlayerPlaySound -
Mikkel_Pedersen - 18.12.2010
got answered above ^
Re: PlayerPlaySound -
Noss* - 18.12.2010
Quote:
Originally Posted by blackwave
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
Re: PlayerPlaySound -
blackwave - 18.12.2010
Quote:
Originally Posted by Noss*
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
Re: PlayerPlaySound -
Noss* - 18.12.2010
Quote:
Originally Posted by blackwave
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;
}
|
Re: PlayerPlaySound -
Face9000 - 18.12.2010
LOL Why that coords?
Just PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0);
Re: PlayerPlaySound -
blackwave - 18.12.2010
Quote:
Originally Posted by Logitech90
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.
Re: PlayerPlaySound -
Noss* - 18.12.2010
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;
}
|