<?xml version="1.0" encoding="utf-8"?>
<!-- Generated on Thu, 04 Jun 2026 04:03:20 +0200 -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>GMod-Fan Inc. - Форум</title>
    <link>https://gmod-fan.com/forum/discussions/topic-6523.html</link>
    <description>Последние ответы в теме: Как сделать SENT с рандомными SWEP?</description>
    <generator>LogicBoard</generator>
    <item>
      <title>Как сделать SENT с рандомными SWEP?</title>
      <description><![CDATA[local weaponchoice = math.random(1,8)<!--br--><br /> if weaponchoice == 1 then<!--br--><br /> self.ent:Give = &quot;weapon_soviet_ak&quot;<!--br--><br /> elseif weaponchoice == 2 then<!--br--><br /> self.ent:Give = &quot;weapon_rocket_launcher&quot;<!--br--><br />end<!--br--><br /><!--br--><br />Попробуй так]]></description>
      <link>https://gmod-fan.com/forum/discussions/last/topic-6523.html</link>
      <pubDate>Mon, 21 Aug 2017 15:04:01 +0200</pubDate>
      <author>saref</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/discussions/last/topic-6523.html]]></guid>
    </item>
    <item>
      <title>Как сделать SENT с рандомными SWEP?</title>
      <description><![CDATA[<div class="block_quote"><span class="block_titlequote" data-pid="101923">saref (<a href="http://www.gmod-fan.ru/forum/findpost/101923/" class="lb_findpost">21.08.2017, 12:59</a>) писал:</span><span class="block_textquote"><!--br--><br />self.ent:Give(math.random(0,1)) Наверно че то типа этого<!--br--><br /></span></div><!--quote --><!--br--><br /><!--br--><br />Ну,вот у меня тут есть код для модели.Все работает,но я не знаю как правильно заменить на выдачу оружия.Вот код:<!--br--><br /><!--br--><br />   local modelchoice = math.random(1,8)<!--br--><br />   if modelchoice == 1 then<!--br--><br />   self.Model = &quot;models/MEmilitants/2hemagh.mdl&quot;<!--br--><br />   elseif modelchoice == 2 then<!--br--><br />   self.Model = &quot;models/MEmilitants/2kimasked.mdl&quot;<!--br--><br />   elseif modelchoice == 3 then<!--br--><br />   self.Model = &quot;models/MEmilitants/3hemagh.mdl&quot;<!--br--><br />   elseif modelchoice == 4 then<!--br--><br />   self.Model = &quot;models/MEmilitants/shemagh.mdl&quot;<!--br--><br />   elseif modelchoice == 5 then<!--br--><br />   self.Model = &quot;models/MEmilitants/shemagh_helmet.mdl&quot;<!--br--><br />   elseif modelchoice == 6 then<!--br--><br />   self.Model = &quot;models/MEmilitants/skimasked.mdl&quot;<!--br--><br />   elseif modelchoice == 7 then<!--br--><br />   self.Model = &quot;models/MEmilitants/unmasked1.mdl&quot;<!--br--><br />   elseif modelchoice == 8 then<!--br--><br />   self.Model = &quot;models/MEmilitants/unmasked2.mdl&quot;<!--br--><br />   end]]></description>
      <link>https://gmod-fan.com/forum/discussions/last/topic-6523.html</link>
      <pubDate>Mon, 21 Aug 2017 12:28:40 +0200</pubDate>
      <author>vladvoron</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/discussions/last/topic-6523.html]]></guid>
    </item>
    <item>
      <title>Как сделать SENT с рандомными SWEP?</title>
      <description><![CDATA[self.ent:Give(math.random(0,1)) Наверно че то типа этого]]></description>
      <link>https://gmod-fan.com/forum/discussions/last/topic-6523.html</link>
      <pubDate>Mon, 21 Aug 2017 11:59:46 +0200</pubDate>
      <author>saref</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/discussions/last/topic-6523.html]]></guid>
    </item>
    <item>
      <title>Как сделать SENT с рандомными SWEP?</title>
      <description><![CDATA[Нужно сделать SENT,которому при спавне будет выдаваться одно или другое оружие.Как сделать?Через self.ent:Give( &quot;weapon_soviet_ak&quot;, &quot;weapon_rocket_launcher&quot; )  получается выдать только одно оружие]]></description>
      <link>https://gmod-fan.com/forum/discussions/last/topic-6523.html</link>
      <pubDate>Sun, 20 Aug 2017 17:14:03 +0200</pubDate>
      <author>vladvoron</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/discussions/last/topic-6523.html]]></guid>
    </item>
  </channel></rss>