<div>This mod was developed for the next development, which was in my plans. It serves as a basis. I think do not need to explain what a Hide and Seek.<br /><br />Why "<b>Developer Mode</b>"? In the development of this mod, I rely more on convenience in the following plugins for this mod, what it actually created: for scripters interested mod Hide and Seek, to make their lives easier in their development, and so it got its name.<br /><br /><b>CONFIG</b>:<br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">[</span><span style="color: #0000BB">MAIN</span><span style="color: #007700">] <br /> { <br /> </span><span style="color: #0000BB">HNS_TIMER_SECONDS </span><span style="color: #007700">= </span><span style="color: #0000BB">10 </span><span style="color: #FF8000">//timer seconds<br /> </span><span style="color: #0000BB">HNS_SERVER_AA </span><span style="color: #007700">= </span><span style="color: #0000BB">100 </span><span style="color: #FF8000">//sv_airaccelerate value<br /> </span><span style="color: #0000BB">HNS_BLOCK_MONEY </span><span style="color: #007700">= </span><span style="color: #0000BB">1 </span><span style="color: #FF8000">//lock change HUD money (1/0) <br /> </span><span style="color: #007700">} <br /> <br /> [</span><span style="color: #0000BB">AUTO JOIN TEAM</span><span style="color: #007700">] <br /> { <br /> </span><span style="color: #0000BB">HNS_JOIN_TEAM </span><span style="color: #007700">= </span><span style="color: #0000BB">5 </span><span style="color: #FF8000">//forced choice team (5 - auto select) <br /> </span><span style="color: #0000BB">HNS_JOIN_CLASS </span><span style="color: #007700">= </span><span style="color: #0000BB">5 </span><span style="color: #FF8000">//forced choice class (5 - auto select) <br /> </span><span style="color: #007700">} <br /> <br /> [</span><span style="color: #0000BB">ENTITY REMOVED </span><span style="color: #007700">LIST]<br /> { </span><span style="color: #FF8000">//The list of objects to be deleted<br /> </span><span style="color: #0000BB">func_buyzone <br /> info_bomb_target <br /> func_hostage_rescue <br /> monster_scientist <br /> hostage_entity <br /> info_hostage_rescue <br /> func_bomb_target <br /> func_escapezone <br /> info_vip_start <br /> func_vip_safetyzone <br /> armoury_entity <br /> func_breakable <br /> </span><span style="color: #007700">}
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div></div>
</div>
</div><br /><br /><b>INCLUDE</b>:<br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #FF8000">/**<br /> * Called when the round ends in favor of a team or a draw.<br /> *<br /> * @param team The winning team.<br /> * @param gamestarted Whether there is a composition of both teams.<br /> */<br /> </span><span style="color: #0000BB">enum HnsTeams<br /> </span><span style="color: #007700">{<br /> </span><span style="color: #0000BB">HNS_DRAW</span><span style="color: #007700">,<br /> </span><span style="color: #0000BB">HNS_TEAM_T</span><span style="color: #007700">,<br /> </span><span style="color: #0000BB">HNS_TEAM_CT<br /> </span><span style="color: #007700">};<br /> <br /> </span><span style="color: #0000BB">forward hns_round_end</span><span style="color: #007700">(</span><span style="color: #0000BB">HnsTeams</span><span style="color: #007700">:</span><span style="color: #0000BB">team</span><span style="color: #007700">, </span><span style="color: #0000BB">bool</span><span style="color: #007700">: </span><span style="color: #0000BB">gamestarted</span><span style="color: #007700">);<br /> <br /></span><span style="color: #FF8000">/**<br /> * Called at the end of the timer when the CT start acting.<br /> *<br /> * @param min_players Is there a minimum number of players (2).<br /> */<br /> </span><span style="color: #0000BB">forward hns_round_start</span><span style="color: #007700">(</span><span style="color: #0000BB">bool</span><span style="color: #007700">: </span><span style="color: #0000BB">min_players</span><span style="color: #007700">);<br /> <br /></span><span style="color: #FF8000">/**<br /> * Called the duration of the timer. <br /> * The feature is useful for creating an informer with a count.<br /> *<br /> * @param index Client index.<br /> * @param time Timer seconds.<br /> */<br /> </span><span style="color: #0000BB">forward hns_timer_process</span><span style="color: #007700">(</span><span style="color: #0000BB">index</span><span style="color: #007700">, </span><span style="color: #0000BB">time</span><span style="color: #007700">);<br /> <br /></span><span style="color: #FF8000">/**<br /> * Called when the CT becomes TT<br /> * thanks to the change of command (native hns_switch_teams()).<br /> *<br /> * @param index Client index.<br /> */<br /> </span><span style="color: #0000BB">forward hns_became_terrorist</span><span style="color: #007700">(</span><span style="color: #0000BB">index</span><span style="color: #007700">);<br /> <br /></span><span style="color: #FF8000">/**<br /> * Called when a player from a certain <br /> * team is become lonely.<br /> *<br /> * @param index Client index.<br /> * @param team Player team.<br /> */<br /> </span><span style="color: #0000BB">forward hns_player_loner</span><span style="color: #007700">(</span><span style="color: #0000BB">index</span><span style="color: #007700">, </span><span style="color: #0000BB">HnsTeams</span><span style="color: #007700">:</span><span style="color: #0000BB">team</span><span style="color: #007700">);<br /> <br /></span><span style="color: #FF8000">/**<br /> * The function needs to change the teams interchanged.<br /> */<br /> </span><span style="color: #0000BB">native hns_switch_teams</span><span style="color: #007700">();<br /> <br /> </span><span style="color: #FF8000">/**<br /> * This function allows you to learn whether there is a composition of both teams.<br /> */<br /> </span><span style="color: #0000BB">native bool</span><span style="color: #007700">:</span><span style="color: #0000BB">hns_get_gamestarted</span><span style="color: #007700">();<br /> <br /> </span><span style="color: #FF8000">/**<br /> * This function allows you to learn number of alive players specific team.<br /> *<br /> * @param team[10] Needs a team ("CT" or "TERRORIST").<br /> */<br /> </span><span style="color: #0000BB">native hns_get_aliveplayers</span><span style="color: #007700">(</span><span style="color: #0000BB">team</span><span style="color: #007700">[</span><span style="color: #0000BB">10</span><span style="color: #007700">]);
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div></div>
</div>
</div><br /><br /><b>P.S.</b>: Mod does not include the semiclip. I personally use the module from s1lent.<br /><br />The archive has three examples of use the available functions, with which you can fully enjoy the mod.<br /><br />Github repository: <a href="https://github.com/E...Developer Mode"target="_blank">Click</a>.</div>
<br /> <div style="padding:6px">
<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td><img class="inlineimg" src="https://forums.allie...attach/zip.gif"alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...andseek.zip</a>(10.2 KB)
</td>
</tr>
</table>
</fieldset>
</div>
Wyświetl pełny artykuł
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
Hide and Seek: Developer Mode [3.5.1 Stable]
Temat rozp.
Adminek AMXX.PL
, 07.09.2015 12:02
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 1
0 użytkowników, 1 gości, 0 anonimowych