<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Players%3A%3AbroadcastInRange</id>
	<title>Players::broadcastInRange - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Players%3A%3AbroadcastInRange"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Players::broadcastInRange&amp;action=history"/>
	<updated>2026-07-24T21:23:33Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Players::broadcastInRange&amp;diff=12584&amp;oldid=prev</id>
		<title>imported&gt;Shr0x в 11:07, 10 ноября 2024</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Players::broadcastInRange&amp;diff=12584&amp;oldid=prev"/>
		<updated>2024-11-10T11:07:36Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ServersideJsFunction}}&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
&lt;br /&gt;
==Summary==&lt;br /&gt;
The `mp.players.broadcastInRange` function allows sending a chat message to all players within a specified range from a position. This is useful for proximity-based messaging, where only nearby players will receive the message.&lt;br /&gt;
&lt;br /&gt;
===Required Params===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;position:&amp;#039;&amp;#039;&amp;#039; {{RageType|Vector3}} — The position from which the message is sent.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;range:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} — The radius around the position for the message range.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;text:&amp;#039;&amp;#039;&amp;#039; {{RageType|string}} — The message text to be broadcast.&lt;br /&gt;
&lt;br /&gt;
===Optional Params===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;dimension:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} — The dimension where the message is sent (default is all dimensions).&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039; {{RageType|void}} &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;typescript&amp;quot;&amp;gt;&lt;br /&gt;
mp.players.broadcastInRange(position, range, text [, dimension]);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example sends a message to all players within 15 units of the player.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.events.addCommand(&amp;quot;say&amp;quot;, (player, message) =&amp;gt; {&lt;br /&gt;
    let pos = player.position;&lt;br /&gt;
    mp.players.broadcastInRange(pos, 15, `Message from ${player.name}: ${message}`);&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
==See also==&lt;br /&gt;
{{PlayerPool_block}}&lt;br /&gt;
[[Category:Serverside API]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Shr0x</name></author>
	</entry>
</feed>