[TF2] Sentry Restrict
Adminek AMXX.PL 10.09.2014
<!-- BEGIN TEMPLATE: postbit_external -->
<div><font size="5">Sentry Restrict (v0.4, 9/10/2014)</font><br /><br /><b>Description:</b><br />This plugin prevents players from building sentries when the player count falls beneath an arbitrary limit. This is accomplished by destroying sentries as soon as they are built.<br /><br /><b>Features:</b> <ul><li>Refund spent metal to the builder when their sentry is destroyed</li>
<li>Show a chat message to the builder that tells them how many players need to arrive before they can build sentries</li>
<li>Alert players when they are allowed to build sentries</li>
<li>Count or ignore bots and spectators</li>
</ul><br /><b>Cvar list:</b><br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">sm_sentryrestrict_enabled "1"<br /> - Set to 0 to disable Sentry Restrict (always allow sentries)<br />sm_sentryrestrict_count_spec "0"<br /> - Set to 1 to count spectators and unassigned players when deciding to allow/disallow sentries<br />sm_sentryrestrict_count_bots "0"<br /> - Set to 1 to count bots when deciding to allow/disallow sentries<br />sm_sentryrestrict_refund "1"<br /> - Set to 1 to refund the builder's metal when their sentry is destroyed<br />sm_sentryrestrict_announce "1"<br /> - Set to 1 to announce when sentries are allowed or disallowed<br />sm_sentryrestrict_chatspam "1"<br /> - Set to 1 to tell clients when their sentries are destroyed<br />sm_sentryrestrict_method "0" min. 0 max. 2<br /> - Method of destroying sentries<br /> 0: Force the client to execute destroy 2 0<br /> This method causes metal gibs to appear that can be picked up for free ammo,<br /> but is the only method that prevents gaming of stats systems.<br /> 1: Remove the sentry from the game world<br /> This method calls the Kill input on the sentry's entity. This allows players<br /> to game stats systems as they will not deduct points for sentries destroyed<br /> this way. However, no metal gibs will spawn.<br /> 2: Destroy the sentry with damage from the builder<br /> This method calls the RemoveHealth input on the sentry's entity, with the<br /> activator set to the offending player. This allows players to game stats<br /> systems for the same reason as the above method. It also causes metal gibs<br /> to spawn, and will show an entry in the kill feed.<br />sm_sentryrestrict_destroy_full "1"<br /> - Set to 1 to destroy existing standard sentries when the player count falls below the threshold<br />sm_sentryrestrict_destroy_mini "1"<br /> - Set to 1 to destroy existing mini-sentries when the player count falls below the threshold<br />sm_sentryrestrict_minplayers_full "6" min. 0 max. 65<br /> - Minimum players to allow standard sentries. 0 = never allow<br />sm_sentryrestrict_minplayers_mini "10" min. 0 max. 65<br /> - Minimum players to allow mini-sentries. 0 = never allow</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><b>Changelog:</b><br /><!-- BEGIN TEMPLATE: bbcode_quote_printable -->
<div style="margin:20px; margin-top:5px; ">
<div class="smallfont" style="margin-bottom:2px">Quote:</div>
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2">
<hr />
0.4 - 9/10/2014<br /> - Initial public release.
<hr />
</td>
</tr>
</table>
</div>
<!-- END TEMPLATE: bbcode_quote_printable --><b>Planned features:</b> <ul><li>An override to allow players to bypass the restrictions.</li>
</ul><br /><b>Known bugs:</b> <ul><li>None at the moment.</li>
</ul><br /><b>Optional dependencies:</b><ul><li>Compile with <a href="https://forums.allie...ead.php?t=96831" target="_blank">colors</a> or <a href="https://forums.alliedmods.net/showthread.php?t=185016" target="_blank">morecolors</a> for pretty colors in announcements and chatspam.</li>
</ul></div>
<br /> <div style="padding:6px">
<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie...s/attach/sp.gif" alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.sourcemod...?file_id=137787"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1410363828">Get Source</a> (sentryrestrict.sp - 11.3 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>
</div>
<!-- END TEMPLATE: postbit_external -->
Wyświetl pełny artykuł
<div><font size="5">Sentry Restrict (v0.4, 9/10/2014)</font><br /><br /><b>Description:</b><br />This plugin prevents players from building sentries when the player count falls beneath an arbitrary limit. This is accomplished by destroying sentries as soon as they are built.<br /><br /><b>Features:</b> <ul><li>Refund spent metal to the builder when their sentry is destroyed</li>
<li>Show a chat message to the builder that tells them how many players need to arrive before they can build sentries</li>
<li>Alert players when they are allowed to build sentries</li>
<li>Count or ignore bots and spectators</li>
</ul><br /><b>Cvar list:</b><br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">sm_sentryrestrict_enabled "1"<br /> - Set to 0 to disable Sentry Restrict (always allow sentries)<br />sm_sentryrestrict_count_spec "0"<br /> - Set to 1 to count spectators and unassigned players when deciding to allow/disallow sentries<br />sm_sentryrestrict_count_bots "0"<br /> - Set to 1 to count bots when deciding to allow/disallow sentries<br />sm_sentryrestrict_refund "1"<br /> - Set to 1 to refund the builder's metal when their sentry is destroyed<br />sm_sentryrestrict_announce "1"<br /> - Set to 1 to announce when sentries are allowed or disallowed<br />sm_sentryrestrict_chatspam "1"<br /> - Set to 1 to tell clients when their sentries are destroyed<br />sm_sentryrestrict_method "0" min. 0 max. 2<br /> - Method of destroying sentries<br /> 0: Force the client to execute destroy 2 0<br /> This method causes metal gibs to appear that can be picked up for free ammo,<br /> but is the only method that prevents gaming of stats systems.<br /> 1: Remove the sentry from the game world<br /> This method calls the Kill input on the sentry's entity. This allows players<br /> to game stats systems as they will not deduct points for sentries destroyed<br /> this way. However, no metal gibs will spawn.<br /> 2: Destroy the sentry with damage from the builder<br /> This method calls the RemoveHealth input on the sentry's entity, with the<br /> activator set to the offending player. This allows players to game stats<br /> systems for the same reason as the above method. It also causes metal gibs<br /> to spawn, and will show an entry in the kill feed.<br />sm_sentryrestrict_destroy_full "1"<br /> - Set to 1 to destroy existing standard sentries when the player count falls below the threshold<br />sm_sentryrestrict_destroy_mini "1"<br /> - Set to 1 to destroy existing mini-sentries when the player count falls below the threshold<br />sm_sentryrestrict_minplayers_full "6" min. 0 max. 65<br /> - Minimum players to allow standard sentries. 0 = never allow<br />sm_sentryrestrict_minplayers_mini "10" min. 0 max. 65<br /> - Minimum players to allow mini-sentries. 0 = never allow</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><b>Changelog:</b><br /><!-- BEGIN TEMPLATE: bbcode_quote_printable -->
<div style="margin:20px; margin-top:5px; ">
<div class="smallfont" style="margin-bottom:2px">Quote:</div>
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2">
<hr />
0.4 - 9/10/2014<br /> - Initial public release.
<hr />
</td>
</tr>
</table>
</div>
<!-- END TEMPLATE: bbcode_quote_printable --><b>Planned features:</b> <ul><li>An override to allow players to bypass the restrictions.</li>
</ul><br /><b>Known bugs:</b> <ul><li>None at the moment.</li>
</ul><br /><b>Optional dependencies:</b><ul><li>Compile with <a href="https://forums.allie...ead.php?t=96831" target="_blank">colors</a> or <a href="https://forums.alliedmods.net/showthread.php?t=185016" target="_blank">morecolors</a> for pretty colors in announcements and chatspam.</li>
</ul></div>
<br /> <div style="padding:6px">
<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie...s/attach/sp.gif" alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.sourcemod...?file_id=137787"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1410363828">Get Source</a> (sentryrestrict.sp - 11.3 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>
</div>
<!-- END TEMPLATE: postbit_external -->
Wyświetl pełny artykuł