SA-MP Forums Archive
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)
+--- Thread: PlayerPlaySound (/showthread.php?tid=291516)



PlayerPlaySound - mike_1 - 20.10.2011

well;
pawn Код:
public OnPlayerConnect(playerid)
{
PlayerPlaySound(playerid, ID, 0.0, 0.0, 10.0);
return 1;
}
the sound playing OnPlayerConnect
but
pawn Код:
public OnPlayerSpawn(playerid)
{
return 1;
}
It keeps playing the sound..
how can i stop the playersound while player spawns?


Re: PlayerPlaySound - [MWR]Blood - 20.10.2011

Play an invalid sound id. I think one of them was 1169 or 1171.


Re: PlayerPlaySound - vassilis - 20.10.2011

Quote:
Originally Posted by mike_1
Посмотреть сообщение
well;
pawn Код:
public OnPlayerConnect(playerid)
{
PlayerPlaySound(playerid, ID, 0.0, 0.0, 10.0);
return 1;
}
the sound playing OnPlayerConnect
but
pawn Код:
public OnPlayerSpawn(playerid)
{
return 1;
}
It keeps playing the sound..
how can i stop the playersound while player spawns?
Do this :
pawn Код:
OnPlayerSpawn(playerid)
{
PlayerPlaySound(playerid, 1184,x,y,z);
return 1;
}
1184 = SOUND_OFF