Help me with a command.
#1

I was working on a command that plays a sound but I tired to make it only when the player who activated the sound could hear it and the players who are nearby him, it just doesn't work
this is my script, this is kinda bad, It doesn't play the sound sometimes to the player, and sometimes to everyone else.
pawn Код:
forward BoomSound( playerid );
public  BoomSound( playerid )
{
new otherId;
  new Float:x, Float:y, Float:z;
 
    if(IsPlayerInAnyVehicle(playerid))
            {
   if(PlayerToPoint(15.0,otherId, x, y, z))

             PlayerPlaySound(playerid, 1147, x, y, z);
  PlayerPlaySound(otherId, 1147, x, y, z);


 
   }
}
Reply


Messages In This Thread
Help me with a command. - by Scriptissue - 20.10.2010, 16:49
Re: Help me with a command. - by Mauzen - 20.10.2010, 17:04
Re: Help me with a command. - by Scriptissue - 20.10.2010, 17:13
Re: Help me with a command. - by Scriptissue - 20.10.2010, 17:30
Re: Help me with a command. - by Scriptissue - 21.10.2010, 13:15
Re: Help me with a command. - by MadeMan - 21.10.2010, 14:18
Re: Help me with a command. - by Badger(new) - 21.10.2010, 14:20
Re: Help me with a command. - by Scriptissue - 21.10.2010, 14:33
Re: Help me with a command. - by Badger(new) - 21.10.2010, 14:44
Re: Help me with a command. - by Scriptissue - 21.10.2010, 15:03

Forum Jump:


Users browsing this thread: 2 Guest(s)