help , 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: help , PlayerPlaySound (
/showthread.php?tid=439627)
help , PlayerPlaySound -
morocco - 26.05.2013
Hi
please how to make PlayerPlaySound for some players not just one player
EX : if players in house , PlayerPlaySound for all in house
and i'm sorry for my english
Re: help , PlayerPlaySound -
park4bmx - 26.05.2013
What is the variable to detect the players in the house ?
As u didn't say I have to do it this way
Put this when ever u play ur sound
pawn Код:
new float:PposX,float:PposY,float:PposZ;
GetPlayerPos(playerid,PposX,PposY,PposZ);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 20.0,PposX,PposY,PposZ)
{
PlayPlayerSound(i,//so on
}
}
Re : Re: help , PlayerPlaySound -
morocco - 26.05.2013
Quote:
Originally Posted by park4bmx
What is the variable to detect the players in the house ?
As u didn't say I have to do it this way
Put this when ever u play ur sound
pawn Код:
new float:PposX,float:PposY,float:PposZ; GetPlayerPos(playerid,PposX,PposY,PposZ); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerInRangeOfPoint(i, 20.0,PposX,PposY,PposZ) { PlayPlayerSound(i,//so on } }
|
( in house ) this is just Example
i need if player use /call , send Sound to anyone at this player , near
and i'm sorry