How to make it if your in a certain location - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to make it if your in a certain location (
/showthread.php?tid=133661)
How to make it if your in a certain location -
Torran - 13.03.2010
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
Re: How to make it if your in a certain location -
Naxix - 13.03.2010
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
Re: How to make it if your in a certain location -
Torran - 13.03.2010
And for the player not seeing other peoples text?
Re: How to make it if your in a certain location -
Naxix - 13.03.2010
I'm not sure on that on :b i'm a fairly new scripter s:
Re: How to make it if your in a certain location -
SloProKiller - 13.03.2010
Use
pawn Код:
LimitGlobalChatRadius(Float:radious);
Re: How to make it if your in a certain location -
Dark_Kostas - 13.03.2010
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.