spawn problem - 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: spawn problem (
/showthread.php?tid=93292)
spawn problem -
Sfinx_17 - 24.08.2009
why when i spawn my music is still playing ? help plz
Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 565.8892,-411.5806,27.8640); // pozitia la skin unde sa se afle cand il selectezi
SetPlayerFacingAngle(playerid,106.8770); // asta nush ce e
SetPlayerCameraPos(playerid, 561.5668,-410.7528,28.1757); // din ce unghi sa te vada camera
SetPlayerCameraLookAt(playerid, 565.8892,-411.5806,27.8640); // la ce sa se uite camera
PlayerPlaySound(playerid, 1097, 0.0, 0.0, 0.0);
return 1;
}
Re: spawn problem -
MenaceX^ - 24.08.2009
pawn Код:
PlayerPlaySound(playerid, 1097+1, 0.0, 0.0, 0.0);
If you make one ID above the sound id it usualy cancels the sound.
Re: spawn problem -
Sfinx_17 - 24.08.2009
for example like this you mean ??
Код:
PlayerPlaySound(1, 1097, 0.0, 0.0, 0.0);
Re: spawn problem -
MenaceX^ - 24.08.2009
What was hard to understand? I already posted a code..
pawn Код:
PlayerPlaySound(playerid, 1097+1, 0.0, 0.0, 0.0);
Re: spawn problem -
Sfinx_17 - 24.08.2009
hey what i am trying to say is....i want my music to hear at class selection ,but after i spawn to not hear so can you help me please ? please
because in my game after i spawn i still hear the music..so can you help me please ?
Re: spawn problem -
Mr_Finnigan - 24.08.2009
Top of gamemode
Код:
#define SOUND_OFF 1184
Then under OnPlayerSpawn
Код:
PlayerPlaySound(playerid,SOUND_OFF,-1421.1034,1488.5735,11.8084);
Re: spawn problem -
Sfinx_17 - 24.08.2009
it work's ! thanks man