<?xml version="1.0" encoding="utf-8"?>
<!-- Generated on Fri, 05 Jun 2026 15:32:47 +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/problems/topic-1607.html</link>
    <description>Последние ответы в теме: Не работает код.</description>
    <generator>LogicBoard</generator>
    <item>
      <title>Не работает код.</title>
      <description><![CDATA[Да огромное спасибо, это именно то что нужно!]]></description>
      <link>https://gmod-fan.com/forum/problems/last/topic-1607.html</link>
      <pubDate>Sun, 17 Feb 2013 09:11:43 +0100</pubDate>
      <author>SmallNibbler</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/problems/last/topic-1607.html]]></guid>
    </item>
    <item>
      <title>Не работает код.</title>
      <description><![CDATA[<strong>SmallNibbler</strong>, Кроме RP одно знаю , я вообще больше по коддированию людей и оружий , сами игровые режимы у меня на среднем уровне ...<br />На счёт дропа оружий :<br /><!-- PHP code --><div class="php" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">php code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">local <span style="color: #000000; font-weight: bold;">function</span> fDropW<span style="color: #009900;">&#40;</span> ply<span style="color: #339933;">,</span> command<span style="color: #339933;">,</span> arguments <span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp;Msg<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;Droping primary weapon<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ply<span style="color: #339933;">:</span>DropWeapon<span style="color: #009900;">&#40;</span>ply<span style="color: #339933;">:</span>GetActiveWeapon<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #990000;">end</span> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; concommand<span style="color: #339933;">.</span>Add<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;DropWeapon&quot;</span><span style="color: #339933;">,</span> fDropW <span style="color: #009900;">&#41;</span></div></li>
</ol></div><!--/PHP code --><br />Может это ищешь]]></description>
      <link>https://gmod-fan.com/forum/problems/last/topic-1607.html</link>
      <pubDate>Sun, 17 Feb 2013 08:57:45 +0100</pubDate>
      <author>Alexander.S.V.</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/problems/last/topic-1607.html]]></guid>
    </item>
    <item>
      <title>Не работает код.</title>
      <description><![CDATA[Отредактировал энтити, деньги дропаются и поднимаются, все работает но ошибка осталась, и ещё не отображается количество денег сверху энтити, но это опять же другая история. Есть идеи по поводу ошибки?<br /><br />Несколько минут спустя:<br />Закоментил эту строку, она в принципе не нужна. Ошибка пропала.<br /><br />Есть очень важный вопрос:<br />Ты не знаешь где можно вытащить систему дропа оружия? ДаркРП имеет такую, он слишком сложен для редактирования, по крайней мере мне. Тот гейммод с которого стащил дроп денег не имеет такой, и это очень печально. Или может дашь ссылку на вики с этой функцией, а то найти не получается, с помощью какой функции оно вообще дропается. (Аля CS)]]></description>
      <link>https://gmod-fan.com/forum/problems/last/topic-1607.html</link>
      <pubDate>Sun, 17 Feb 2013 08:45:02 +0100</pubDate>
      <author>SmallNibbler</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/problems/last/topic-1607.html]]></guid>
    </item>
    <item>
      <title>Не работает код.</title>
      <description><![CDATA[Забудьте всё что я писал ранее.<br />Переделал код, деньги дропнулись. Но появилась ошибка:<br /><!-- JS code --><div class="javascript" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">JavaScript code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#91;</span>ERROR<span style="color: #009900;">&#93;</span> gamemodes<span style="color: #339933;">/</span>lightrp2<span style="color: #339933;">/</span>gamemode<span style="color: #339933;">/</span>sh_commands.<span style="color: #660066;">lua</span><span style="color: #339933;">:</span><span style="color: #CC0000;">583</span><span style="color: #339933;">:</span> attempt to call method <span style="color: #3366CC;">'GiveAccess'</span> <span style="color: #009900;">&#40;</span>a nil value<span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span style="color: #CC0000;">1</span>. <span style="color: #660066;">Execute</span> <span style="color: #339933;">-</span> gamemodes<span style="color: #339933;">/</span>lightrp2<span style="color: #339933;">/</span>gamemode<span style="color: #339933;">/</span>sh_commands.<span style="color: #660066;">lua</span><span style="color: #339933;">:</span><span style="color: #CC0000;">583</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp;<span style="color: #CC0000;">2</span>. <span style="color: #660066;">unknown</span> <span style="color: #339933;">-</span> gamemodes<span style="color: #339933;">/</span>lightrp2<span style="color: #339933;">/</span>gamemode<span style="color: #339933;">/</span>modules<span style="color: #339933;">/</span>sv_chat.<span style="color: #660066;">lua</span><span style="color: #339933;">:</span><span style="color: #CC0000;">70</span></div></li>
</ol></div><!--/JS code --> <br /><br />Не совсем понял в чем суть, но ладно.<br />Вот код:<br /><blockquote class="blockspoiler"><span class="titlespoiler"><a href='#' onclick="ShowAndHide('fa6975f1554334feaf5c0d05b0d94bf6'); return false;">Спойлер [+]</a></span><div id='fa6975f1554334feaf5c0d05b0d94bf6' style='display:none;' class="textspoiler"><!-- JS code --><div class="javascript" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">JavaScript code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">local command <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">command.<span style="color: #660066;">command</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;/dropmoney&quot;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">command.<span style="color: #660066;">help</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Drop money on the floor.&quot;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">command.<span style="color: #660066;">arguments</span> &nbsp; &nbsp; &nbsp; <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #3366CC;">&quot;&lt;amount&gt;&quot;</span><span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">function</span> command<span style="color: #339933;">:</span>Execute<span style="color: #009900;">&#40;</span>player<span style="color: #339933;">,</span> arguments<span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; local amount <span style="color: #339933;">=</span> tonumber<span style="color: #009900;">&#40;</span> arguments<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; local money <span style="color: #339933;">=</span> player<span style="color: #339933;">:</span>GetPrivateField<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;money&quot;</span><span style="color: #009900;">&#41;</span> or <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>amount and amount <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; amount <span style="color: #339933;">=</span> math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>amount<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>amount <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">5</span><span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">--</span>player<span style="color: #339933;">:</span>Notify<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;You need to drop at least $5 dollars!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933;">:</span>PrintMessage<span style="color: #009900;">&#40;</span> HUD_PRINTTALK<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;You need to drop at least $5 dollars!&quot;</span> <span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>money <span style="color: #339933;">-</span> amount <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933;">:</span>SetPrivateField<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;money&quot;</span><span style="color: #339933;">,</span> money <span style="color: #339933;">-</span> amount<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local trace <span style="color: #339933;">=</span> player<span style="color: #339933;">:</span>GetEyeTraceNoCursor<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local position <span style="color: #339933;">=</span> trace.<span style="color: #660066;">HitPos</span> <span style="color: #339933;">+</span> Vector<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">16</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>player<span style="color: #339933;">:</span>GetPos<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>Distance<span style="color: #009900;">&#40;</span>position<span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">256</span><span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">--</span>player<span style="color: #339933;">:</span>Notify<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;You can't drop money that far away!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933;">:</span>PrintMessage<span style="color: #009900;">&#40;</span> HUD_PRINTTALK<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;You can't drop money that far away!&quot;</span> <span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local money <span style="color: #339933;">=</span> ents.<span style="color: #660066;">Create</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;lightrp_entity_money&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; money<span style="color: #339933;">:</span>SetPos<span style="color: #009900;">&#40;</span>position<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; money<span style="color: #339933;">:</span>SetSolid<span style="color: #009900;">&#40;</span>SOLID_VPHYSICS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; money<span style="color: #339933;">:</span>SetMoveType<span style="color: #009900;">&#40;</span>MOVETYPE_VPHYSICS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; money<span style="color: #339933;">:</span>PhysicsInit<span style="color: #009900;">&#40;</span>SOLID_VPHYSICS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; money<span style="color: #339933;">:</span>SetUseType<span style="color: #009900;">&#40;</span>SIMPLE_USE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; money<span style="color: #339933;">:</span>Spawn<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; money<span style="color: #339933;">:</span>SetMoney<span style="color: #009900;">&#40;</span>amount<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; money<span style="color: #339933;">:</span>GiveAccess<span style="color: #009900;">&#40;</span>player<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933;">:</span>DeleteOnRemove<span style="color: #009900;">&#40;</span>money<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">--</span>player<span style="color: #339933;">:</span>Notify<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;You've dropped $&quot;</span>..<span style="color: #660066;">amount</span>..<span style="color: #3366CC;">&quot; dollars.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933;">:</span>PrintMessage<span style="color: #009900;">&#40;</span> HUD_PRINTTALK<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;You've dropped $&quot;</span>..<span style="color: #660066;">amount</span>..<span style="color: #3366CC;">&quot; dollars.&quot;</span> <span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hook.<span style="color: #660066;">Call</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;PlayerSaveData&quot;</span><span style="color: #339933;">,</span> GAMEMODE<span style="color: #339933;">,</span> player<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">else</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">--</span>player<span style="color: #339933;">:</span>Notify<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;You don't have that much money!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933;">:</span>PrintMessage<span style="color: #009900;">&#40;</span> HUD_PRINTTALK<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;You don't have that much money!&quot;</span> <span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">else</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">--</span>player<span style="color: #339933;">:</span>Notify<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;That is not a valid amount!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933;">:</span>PrintMessage<span style="color: #009900;">&#40;</span> HUD_PRINTTALK<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;That is not a valid amount!&quot;</span> <span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; end</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">end</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">lightrp_command.<span style="color: #660066;">Register</span><span style="color: #009900;">&#40;</span>command<span style="color: #009900;">&#41;</span></div></li>
</ol></div><!--/JS code --></div></blockquote><!--spoiler --><br /><br />Деньги пока ещё не поднимаются, но это уже другая история, и думаю с этим проблем не будет. Пока меня беспокоит только эта ошибка.]]></description>
      <link>https://gmod-fan.com/forum/problems/last/topic-1607.html</link>
      <pubDate>Sun, 17 Feb 2013 08:37:18 +0100</pubDate>
      <author>SmallNibbler</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/problems/last/topic-1607.html]]></guid>
    </item>
    <item>
      <title>Не работает код.</title>
      <description><![CDATA[<strong>SmallNibbler</strong>, Вот благодаря этим изменениям код мог перестать работать , к примеру название может ты поменял его тут , а в других местах оно могло остаться таким же]]></description>
      <link>https://gmod-fan.com/forum/problems/last/topic-1607.html</link>
      <pubDate>Sun, 17 Feb 2013 08:36:58 +0100</pubDate>
      <author>Alexander.S.V.</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/problems/last/topic-1607.html]]></guid>
    </item>
    <item>
      <title>Не работает код.</title>
      <description><![CDATA[<blockquote class="blockspoiler"><span class="titlespoiler"><a href='#' onclick="ShowAndHide('6ced59f2bb0df2fd0761b783e4253f98'); return false;">Оригинальная команда</a></span><div id='6ced59f2bb0df2fd0761b783e4253f98' style='display:none;' class="textspoiler"><!-- JS code --><div class="javascript" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">JavaScript code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">pistachio.<span style="color: #660066;">command</span><span style="color: #339933;">:</span>Create<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;dropmoney&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;&lt;amount&gt;&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Drop a certain amount of money on the floor.&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>client<span style="color: #339933;">,</span> arguments<span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">        local amount <span style="color: #339933;">=</span> tonumber<span style="color: #009900;">&#40;</span> arguments<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">        local money <span style="color: #339933;">=</span> client<span style="color: #339933;">:</span>GetPrivateVar<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;money&quot;</span><span style="color: #009900;">&#41;</span> or <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>amount and amount <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                amount <span style="color: #339933;">=</span> math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>amount<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>amount <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">5</span><span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        client<span style="color: #339933;">:</span>Notify<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;You need to drop at least $5 dollars!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>money <span style="color: #339933;">-</span> amount <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        client<span style="color: #339933;">:</span>SetPrivateVar<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;money&quot;</span><span style="color: #339933;">,</span> money <span style="color: #339933;">-</span> amount<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        local trace <span style="color: #339933;">=</span> client<span style="color: #339933;">:</span>GetEyeTraceNoCursor<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        local position <span style="color: #339933;">=</span> trace.<span style="color: #660066;">HitPos</span> <span style="color: #339933;">+</span> Vector<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">16</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>client<span style="color: #339933;">:</span>GetPos<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>Distance<span style="color: #009900;">&#40;</span>position<span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">256</span><span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                                client<span style="color: #339933;">:</span>Notify<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;You can't drop money that far away!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                                <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        local money <span style="color: #339933;">=</span> ents.<span style="color: #660066;">Create</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;pistachio_money&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        money<span style="color: #339933;">:</span>SetPos<span style="color: #009900;">&#40;</span>position<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        money<span style="color: #339933;">:</span>SetSolid<span style="color: #009900;">&#40;</span>SOLID_VPHYSICS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        money<span style="color: #339933;">:</span>SetMoveType<span style="color: #009900;">&#40;</span>MOVETYPE_VPHYSICS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        money<span style="color: #339933;">:</span>PhysicsInit<span style="color: #009900;">&#40;</span>SOLID_VPHYSICS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        money<span style="color: #339933;">:</span>SetUseType<span style="color: #009900;">&#40;</span>SIMPLE_USE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        money<span style="color: #339933;">:</span>Spawn<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        money<span style="color: #339933;">:</span>SetMoney<span style="color: #009900;">&#40;</span>amount<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        money<span style="color: #339933;">:</span>GiveAccess<span style="color: #009900;">&#40;</span>client<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        client<span style="color: #339933;">:</span>DeleteOnRemove<span style="color: #009900;">&#40;</span>money<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        client<span style="color: #339933;">:</span>Notify<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;You've dropped $&quot;</span>..<span style="color: #660066;">amount</span>..<span style="color: #3366CC;">&quot; dollars.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        hook.<span style="color: #660066;">Call</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;PlayerSaveData&quot;</span><span style="color: #339933;">,</span> GAMEMODE<span style="color: #339933;">,</span> client<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000066; font-weight: bold;">else</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        client<span style="color: #339933;">:</span>Notify<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;You don't have that much money!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000066; font-weight: bold;">else</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                client<span style="color: #339933;">:</span>Notify<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;That is not a valid amount!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">        end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">end<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
</ol></div><!--/JS code --></div></blockquote><!--spoiler --><br /><br />Изменил в самой команде только Notify так как в том гейммоде куда я её пихаю, это вызывает ошибки.<br />И <!-- JS code --><div class="javascript" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">JavaScript code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">local money <span style="color: #339933;">=</span> ents.<span style="color: #660066;">Create</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;pistachio_money&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
</ol></div><!--/JS code --> pistachio_money название просто изменил и энтити и название в команде.]]></description>
      <link>https://gmod-fan.com/forum/problems/last/topic-1607.html</link>
      <pubDate>Sun, 17 Feb 2013 08:05:29 +0100</pubDate>
      <author>SmallNibbler</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/problems/last/topic-1607.html]]></guid>
    </item>
    <item>
      <title>Не работает код.</title>
      <description><![CDATA[<div class="block_quote"><span class="block_titlequote">saniok_1997 (17.02.2013, 10:38) писал:</span><span class="block_textquote">Возьми оригинальную ентиту</span></div><!--quote --><br />Оригинальную это какую?<br /><div class="block_quote"><span class="block_titlequote">saniok_1997 (17.02.2013, 10:38) писал:</span><span class="block_textquote">AddCSLuaFile()</span></div><!--quote --><br />Только какого? Того что с командой?<br /><br />Подскажите способ заставить считать число после команды в чате, и присвоить его amount. Думаю это решит проблему.]]></description>
      <link>https://gmod-fan.com/forum/problems/last/topic-1607.html</link>
      <pubDate>Sun, 17 Feb 2013 07:51:42 +0100</pubDate>
      <author>SmallNibbler</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/problems/last/topic-1607.html]]></guid>
    </item>
    <item>
      <title>Не работает код.</title>
      <description><![CDATA[Кажется я понял.<br /><!-- JS code --><div class="javascript" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">JavaScript code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>amount and amount <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> then</div></li>
</ol></div><!--/JS code --><br />Не считывается значение amount с чата, почему?<br /><br />Попробовал закомментить <br /><!-- JS code --><div class="javascript" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">JavaScript code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>amount and amount <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> then</div></li>
</ol></div><!--/JS code --><br />получилось что тут:<br /><!-- JS code --><div class="javascript" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">JavaScript code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">amount <span style="color: #339933;">=</span> math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>amount<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
</ol></div><!--/JS code --><br />Переменная floor это nil, но чем её заменить не знаю.]]></description>
      <link>https://gmod-fan.com/forum/problems/last/topic-1607.html</link>
      <pubDate>Sun, 17 Feb 2013 07:49:24 +0100</pubDate>
      <author>SmallNibbler</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/problems/last/topic-1607.html]]></guid>
    </item>
    <item>
      <title>Не работает код.</title>
      <description><![CDATA[<strong>SmallNibbler</strong>, []<br />if (amount and amount &gt; 0) then<br />[/php] Это счёт и счёт ,возможно это сложение денег , вообще это наверно код RP? Возьми оригинальную ентиту а то ты тут что то всё таки задел , потому код и не робит<br /><br />Точно AddCSLuaFile() вот в скобках должно быть название файла (с кодом)]]></description>
      <link>https://gmod-fan.com/forum/problems/last/topic-1607.html</link>
      <pubDate>Sun, 17 Feb 2013 07:38:34 +0100</pubDate>
      <author>Alexander.S.V.</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/problems/last/topic-1607.html]]></guid>
    </item>
    <item>
      <title>Не работает код.</title>
      <description><![CDATA[<div class="block_quote"><span class="block_titlequote">Gevorg1233212 (16.02.2013, 22:57) писал:</span><span class="block_textquote">извеняюсь что не потеме а это сложно?</span></div><!--quote --><br />Кому как, мне частично.<br /><div class="block_quote"><span class="block_titlequote">saniok_1997 (16.02.2013, 23:47) писал:</span><span class="block_textquote">Единственно что я нашел неправильного то это строчка AddCSLuaFile()</span></div><!--quote --><br />В чем же тогда причина?<br /><br />Насколько я понимаю дальше<br /><!-- JS code --><div class="javascript" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">JavaScript code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>amount and amount <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> then</div></li>
</ol></div><!--/JS code --><br />ничего не идет.<br /><br />Я пишу /dropmoney 10 пишет неверное число, возможно ещё проблема в команде? Нет?<br /><br />Или можете что-нибудь посоветовать по поводу выбрасывания денег?<br /><br />И ещё вопрос, объясните пожалуйста зачем в этой строке:<br /><!-- JS code --><div class="javascript" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">JavaScript code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>amount and amount <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> then</div></li>
</ol></div><!--/JS code --><br />повторение amount? Мне кажется это бессмысленно...]]></description>
      <link>https://gmod-fan.com/forum/problems/last/topic-1607.html</link>
      <pubDate>Sun, 17 Feb 2013 07:23:21 +0100</pubDate>
      <author>SmallNibbler</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/problems/last/topic-1607.html]]></guid>
    </item>
    <item>
      <title>Не работает код.</title>
      <description><![CDATA[Единственно что я нашел неправильного то это строчка AddCSLuaFile() , там в скобках должен быть код который включает файл с кодами (например shared.lua) В основном эти коды отвечаю за количество <br /><blockquote class="blockspoiler"><span class="titlespoiler"><a href='#' onclick="ShowAndHide('2a5756a3800ab62405ea4f3c352b424a'); return false;">Неправильный Энтити</a></span><div id='2a5756a3800ab62405ea4f3c352b424a' style='display:none;' class="textspoiler"><!-- PHP code --><div class="php" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">php code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">AddCSLuaFile<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">ENT<span style="color: #339933;">.</span>Type <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;anim&quot;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">ENT<span style="color: #339933;">.</span>PrintName <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Money&quot;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">ENT<span style="color: #339933;">.</span>Author <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Chessnut&quot;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">ENT<span style="color: #339933;">.</span>Spawnable <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">function</span> ENT<span style="color: #339933;">:</span>SetupDataTables<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">:</span>NetworkVar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Int&quot;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Money&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #990000;">end</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">util<span style="color: #339933;">.</span>PrecacheModel<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;models/props/cs_assault/money.mdl&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">function</span> ENT<span style="color: #339933;">:</span>Initialize<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>SERVER<span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">:</span>SetModel<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;models/props/cs_assault/money.mdl&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">:</span>SetSolid<span style="color: #009900;">&#40;</span>SOLID_VPHYSICS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">:</span>SetMoveType<span style="color: #009900;">&#40;</span>MOVETYPE_VPHYSICS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">:</span>PhysicsInit<span style="color: #009900;">&#40;</span>SOLID_VPHYSICS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">:</span>SetUseType<span style="color: #009900;">&#40;</span>SIMPLE_USE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">:</span>SetMoney<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                local physicsObject <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">:</span>GetPhysicsObject<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> IsValid<span style="color: #009900;">&#40;</span>physicsObject<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        physicsObject<span style="color: #339933;">:</span>Wake<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        physicsObject<span style="color: #339933;">:</span>EnableMotion<span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #990000;">end</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #990000;">end</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #990000;">end</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">function</span> ENT<span style="color: #339933;">:</span>StartTouch<span style="color: #009900;">&#40;</span>entity<span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>SERVER<span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>IsValid<span style="color: #009900;">&#40;</span>entity<span style="color: #009900;">&#41;</span> and entity<span style="color: #339933;">:</span>GetClass<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">.</span>ClassName<span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        local amount <span style="color: #339933;">=</span> entity<span style="color: #339933;">:</span>GetMoney<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        local money <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">:</span>GetMoney<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">:</span>SetMoney<span style="color: #009900;">&#40;</span>money <span style="color: #339933;">+</span> amount<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        entity<span style="color: #339933;">:</span>Remove<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #990000;">end</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #990000;">end</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #990000;">end</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">function</span> ENT<span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">Use</span><span style="color: #009900;">&#40;</span>activator<span style="color: #339933;">,</span> caller<span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>SERVER<span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> IsValid<span style="color: #009900;">&#40;</span>activator<span style="color: #009900;">&#41;</span> and activator<span style="color: #339933;">:</span>IsPlayer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        local money <span style="color: #339933;">=</span> activator<span style="color: #339933;">:</span>GetPrivateVar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;money&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        local amount <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">:</span>GetMoney<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> or <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        activator<span style="color: #339933;">:</span>SetPrivateVar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;money&quot;</span><span style="color: #339933;">,</span> money <span style="color: #339933;">+</span> amount<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        <span style="color: #666666; font-style: italic;">/*activator:Notify(&quot;You've picked up $&quot;..amount..&quot; dollars.&quot;);*/</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        activator<span style="color: #339933;">:</span>PrintMessage<span style="color: #009900;">&#40;</span> HUD_PRINTTALK<span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;You've picked up $&quot;</span><span style="color: #339933;">..</span>amount<span style="color: #339933;">..</span><span style="color: #0000ff;">&quot; dollars.&quot;</span> <span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                        <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">:</span>Remove<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #990000;">end</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #990000;">end</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #990000;">end</span><span style="color: #339933;">;</span></div></li>
</ol></div><!--/PHP code --></div></blockquote><!--spoiler -->]]></description>
      <link>https://gmod-fan.com/forum/problems/last/topic-1607.html</link>
      <pubDate>Sat, 16 Feb 2013 20:47:31 +0100</pubDate>
      <author>Alexander.S.V.</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/problems/last/topic-1607.html]]></guid>
    </item>
    <item>
      <title>Не работает код.</title>
      <description><![CDATA[извеняюсь что не потеме а это сложно?]]></description>
      <link>https://gmod-fan.com/forum/problems/last/topic-1607.html</link>
      <pubDate>Sat, 16 Feb 2013 19:57:24 +0100</pubDate>
      <author>Gevorg1233212</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/problems/last/topic-1607.html]]></guid>
    </item>
    <item>
      <title>Не работает код.</title>
      <description><![CDATA[Не работает код, пишет - неправильное количество, в чем проблема помогите пожалуйста!<br />Энтити присутствует.<br /><blockquote class="blockspoiler"><span class="titlespoiler"><a href='#' onclick="ShowAndHide('73013af6644328fed9018f726da0fbea'); return false;">Спойлер [+]</a></span><div id='73013af6644328fed9018f726da0fbea' style='display:none;' class="textspoiler"><!-- JS code --><div class="javascript" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">JavaScript code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">local command <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">command.<span style="color: #660066;">command</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;/dropmoney&quot;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">command.<span style="color: #660066;">help</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Drop money on the floor.&quot;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">command.<span style="color: #660066;">arguments</span> &nbsp; &nbsp; &nbsp; <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #3366CC;">&quot;&lt;amount&gt;&quot;</span><span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">function</span> command<span style="color: #339933;">:</span>Execute<span style="color: #009900;">&#40;</span>player<span style="color: #339933;">,</span> arguments<span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>amount and amount <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; amount <span style="color: #339933;">=</span> math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>amount<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>amount <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">5</span><span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009966; font-style: italic;">/*player:Notify(&quot;You need to drop at least $5 dollars!&quot;);*/</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933;">:</span>PrintMessage<span style="color: #009900;">&#40;</span> HUD_PRINTTALK<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;You need to drop at least $5 dollars!&quot;</span> <span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>money <span style="color: #339933;">-</span> amount <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933;">:</span>SetPrivateVar<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;money&quot;</span><span style="color: #339933;">,</span> money <span style="color: #339933;">-</span> amount<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local trace <span style="color: #339933;">=</span> player<span style="color: #339933;">:</span>GetEyeTraceNoCursor<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local position <span style="color: #339933;">=</span> trace.<span style="color: #660066;">HitPos</span> <span style="color: #339933;">+</span> Vector<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">16</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>player<span style="color: #339933;">:</span>GetPos<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>Distance<span style="color: #009900;">&#40;</span>position<span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">256</span><span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009966; font-style: italic;">/*player:Notify(&quot;You can't drop money that far away!&quot;);*/</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933;">:</span>PrintMessage<span style="color: #009900;">&#40;</span> HUD_PRINTTALK<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;You can't drop money that far away!&quot;</span> <span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local money <span style="color: #339933;">=</span> ents.<span style="color: #660066;">Create</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;lightrp_entity_money&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; money<span style="color: #339933;">:</span>SetPos<span style="color: #009900;">&#40;</span>position<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; money<span style="color: #339933;">:</span>SetSolid<span style="color: #009900;">&#40;</span>SOLID_VPHYSICS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; money<span style="color: #339933;">:</span>SetMoveType<span style="color: #009900;">&#40;</span>MOVETYPE_VPHYSICS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; money<span style="color: #339933;">:</span>PhysicsInit<span style="color: #009900;">&#40;</span>SOLID_VPHYSICS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; money<span style="color: #339933;">:</span>SetUseType<span style="color: #009900;">&#40;</span>SIMPLE_USE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; money<span style="color: #339933;">:</span>Spawn<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; money<span style="color: #339933;">:</span>SetMoney<span style="color: #009900;">&#40;</span>amount<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; money<span style="color: #339933;">:</span>GiveAccess<span style="color: #009900;">&#40;</span>player<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933;">:</span>DeleteOnRemove<span style="color: #009900;">&#40;</span>money<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009966; font-style: italic;">/*player:Notify(&quot;You've dropped $&quot;..amount..&quot; dollars.&quot;);*/</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933;">:</span>PrintMessage<span style="color: #009900;">&#40;</span> HUD_PRINTTALK<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;You've dropped $&quot;</span>..<span style="color: #660066;">amount</span>..<span style="color: #3366CC;">&quot; dollars.&quot;</span> <span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hook.<span style="color: #660066;">Call</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;PlayerSaveData&quot;</span><span style="color: #339933;">,</span> GAMEMODE<span style="color: #339933;">,</span> player<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">else</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009966; font-style: italic;">/*player:Notify(&quot;You don't have that much money!&quot;);*/</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933;">:</span>PrintMessage<span style="color: #009900;">&#40;</span> HUD_PRINTTALK<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;You don't have that much money!&quot;</span> <span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">else</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009966; font-style: italic;">/*player:Notify(&quot;That is not a valid amount!&quot;);*/</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; player<span style="color: #339933;">:</span>PrintMessage<span style="color: #009900;">&#40;</span> HUD_PRINTTALK<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;That is not a valid amount!&quot;</span> <span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">end</div></li>
</ol></div><!--/JS code --></div></blockquote><!--spoiler --><br /><br /><blockquote class="blockspoiler"><span class="titlespoiler"><a href='#' onclick="ShowAndHide('29763f17459efeef3893ea7e1f374d02'); return false;">Энтити</a></span><div id='29763f17459efeef3893ea7e1f374d02' style='display:none;' class="textspoiler"><!-- JS code --><div class="javascript" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">JavaScript code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">AddCSLuaFile<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">ENT.<span style="color: #660066;">Type</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;anim&quot;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">ENT.<span style="color: #660066;">PrintName</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Money&quot;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">ENT.<span style="color: #660066;">Author</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Chessnut&quot;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">ENT.<span style="color: #660066;">Spawnable</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">function</span> ENT<span style="color: #339933;">:</span>SetupDataTables<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; self<span style="color: #339933;">:</span>NetworkVar<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Int&quot;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Money&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">util.<span style="color: #660066;">PrecacheModel</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;models/props/cs_assault/money.mdl&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">function</span> ENT<span style="color: #339933;">:</span>Initialize<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>SERVER<span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self<span style="color: #339933;">:</span>SetModel<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;models/props/cs_assault/money.mdl&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self<span style="color: #339933;">:</span>SetSolid<span style="color: #009900;">&#40;</span>SOLID_VPHYSICS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self<span style="color: #339933;">:</span>SetMoveType<span style="color: #009900;">&#40;</span>MOVETYPE_VPHYSICS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self<span style="color: #339933;">:</span>PhysicsInit<span style="color: #009900;">&#40;</span>SOLID_VPHYSICS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self<span style="color: #339933;">:</span>SetUseType<span style="color: #009900;">&#40;</span>SIMPLE_USE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self<span style="color: #339933;">:</span>SetMoney<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local physicsObject <span style="color: #339933;">=</span> self<span style="color: #339933;">:</span>GetPhysicsObject<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> IsValid<span style="color: #009900;">&#40;</span>physicsObject<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; physicsObject<span style="color: #339933;">:</span>Wake<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; physicsObject<span style="color: #339933;">:</span>EnableMotion<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">function</span> ENT<span style="color: #339933;">:</span>StartTouch<span style="color: #009900;">&#40;</span>entity<span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>SERVER<span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>IsValid<span style="color: #009900;">&#40;</span>entity<span style="color: #009900;">&#41;</span> and entity<span style="color: #339933;">:</span>GetClass<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> self.<span style="color: #660066;">ClassName</span><span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local amount <span style="color: #339933;">=</span> entity<span style="color: #339933;">:</span>GetMoney<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local money <span style="color: #339933;">=</span> self<span style="color: #339933;">:</span>GetMoney<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self<span style="color: #339933;">:</span>SetMoney<span style="color: #009900;">&#40;</span>money <span style="color: #339933;">+</span> amount<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; entity<span style="color: #339933;">:</span>Remove<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">function</span> ENT<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">Use</span><span style="color: #009900;">&#40;</span>activator<span style="color: #339933;">,</span> caller<span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>SERVER<span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> IsValid<span style="color: #009900;">&#40;</span>activator<span style="color: #009900;">&#41;</span> and activator<span style="color: #339933;">:</span>IsPlayer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> then</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local money <span style="color: #339933;">=</span> activator<span style="color: #339933;">:</span>GetPrivateVar<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;money&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local amount <span style="color: #339933;">=</span> self<span style="color: #339933;">:</span>GetMoney<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> or <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; activator<span style="color: #339933;">:</span>SetPrivateVar<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;money&quot;</span><span style="color: #339933;">,</span> money <span style="color: #339933;">+</span> amount<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009966; font-style: italic;">/*activator:Notify(&quot;You've picked up $&quot;..amount..&quot; dollars.&quot;);*/</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; activator<span style="color: #339933;">:</span>PrintMessage<span style="color: #009900;">&#40;</span> HUD_PRINTTALK<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;You've picked up $&quot;</span>..<span style="color: #660066;">amount</span>..<span style="color: #3366CC;">&quot; dollars.&quot;</span> <span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self<span style="color: #339933;">:</span>Remove<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; end<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">end<span style="color: #339933;">;</span></div></li>
</ol></div><!--/JS code --></div></blockquote><!--spoiler -->]]></description>
      <link>https://gmod-fan.com/forum/problems/last/topic-1607.html</link>
      <pubDate>Sat, 16 Feb 2013 18:37:45 +0100</pubDate>
      <author>SmallNibbler</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/problems/last/topic-1607.html]]></guid>
    </item>
  </channel></rss>