help , PlayerPlaySound
#1

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)