How to make it if your in a certain location
#1

How would i make it so if im in a certain location,
I cant see what other people say, And other people cant see what i say,
How would i do this? Like a sort of Soundproof room
Reply
#2

idk if this would work, but like make a "mute command"

Код:
new rmute[MAX_PLAYERS];
and on OnPlayerText:
Код:
{
	if(rmute[playerid] == 1)
 	{
 		return 0;
 	}
	else return 1;
}
And than make a timer which wil check the players pos? i'm not sure if it will work tho (:

-Naxix
Reply
#3

And for the player not seeing other peoples text?
Reply
#4

I'm not sure on that on :b i'm a fairly new scripter s:
Reply
#5

Use
pawn Код:
LimitGlobalChatRadius(Float:radious);
Reply
#6

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(IsPlayerInRangeOfPoint(playerid, 10.0, YOUR_X, YOUR_Y, YOUR_Z))
    {
        new string[128];
        format(string, sizeof(string), "%s Says: %s", sendername, text);
        SendClientMessage(playerid, 0xFFFFFFFF, string);
        return 0;
    }
    return 1;
}
Replace the YOUR_X, YOUR_Y, YOUR_Z with the co-ords you want.
This will send you a message what you said, but ONLY to you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)