Microphone help...
#1

I want some help here.... How to make commands like this:

/putmic = Will place a microphone on the ground and send everything that players in 15.0 radius says to the player that typed /putmic
/mic <on/off> = Will hide/show the text that comes from the microphone

Can someone help me please? :P
Reply
#2

What have you done already?
Reply
#3

I made something but deleted it, cuse i didn't think it would work...

pawn Код:
new MicPos[][3] =
{
{X,Y,Z}
};

dcmd_putmic(playerid,params[])
{
#pragma unused params
GetPlayerPos(playerid,X,Y,Z);
MicPos = X,Y,Z;
}
Reply
#4

pawn Код:
// Top Of Script
new MicPos[][3] =
{
{X,Y,Z}
};

// DCMD Command
GetPlayerPos(playerid,X,Y,Z);
MicPos[0][0] = X;
MicPos[0][1] = Y;
MicPos[0][2] = Z;

// In OnPlayerText or w/e
if(PlayerToPoint(15.0, playerid, MicPos[0][0], MicPos[0][1], MicPos[0][2]))
{
  // Do w/e
  return 1;
}
Should work
Reply
#5

Quote:
Originally Posted by JeNkStAX
pawn Код:
// Top Of Script
new MicPos[][3] =
{
{X,Y,Z}
};

// DCMD Command
GetPlayerPos(playerid,X,Y,Z);
MicPos[0][0] = X;
MicPos[0][1] = Y;
MicPos[0][2] = Z;

// In OnPlayerText or w/e
if(PlayerToPoint(15.0, playerid, MicPos[0][0], MicPos[0][1], MicPos[0][2]))
{
  // Do w/e
  return 1;
}
Should work
How to make like the OnPlayerText sends everything that everyone says in a 15.0 radius around the mic to the Person who typed /putmic ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)