spawn problem
#1

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

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.
Reply
#3

for example like this you mean ??

Код:
PlayerPlaySound(1, 1097, 0.0, 0.0, 0.0);
Reply
#4

What was hard to understand? I already posted a code..
pawn Код:
PlayerPlaySound(playerid, 1097+1, 0.0, 0.0, 0.0);
Reply
#5

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 ?
Reply
#6

Top of gamemode
Код:
#define SOUND_OFF  1184

Then under OnPlayerSpawn
Код:
PlayerPlaySound(playerid,SOUND_OFF,-1421.1034,1488.5735,11.8084);
Reply
#7

it work's ! thanks man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)