Skocz do zawartości

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.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[TF2] Vote Respawn Times


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 489
  • Lokalizacja:AMXX.PL
Offline

Napisano 28.06.2016 16:45

<div><u><b><font size="4">Description</font></b></u><br /><br />Allow players to vote whether to enable/disable default respawn times.<br /><br />This plugins works around <b>&quot;mp_disable_respawn_times&quot;</b>. Players can initiate a vote typing <b>!voterespawn</b> (also <b>/voterespawn</b>) in the chat to change the current value.<br />If enough people vote &quot;Yes&quot;, the value will change. If not, well, guess what happens... XD<br /><br />There is a cooldown between each vote, so people cant' spam it, but you can manage the cooldown time using a cvar.<br /><br /><b>This plugin uses <a href="https://forums.allie...d.php?t=208008"target="_blank">NativeVotes</a></b>, by Powerlord. If you don't have NativeVotes installed, you should still be able to use the plugin, using the &quot;classic&quot; voting interface that SourceMod has.<br /><br /><br /><font size="4"><u><b>CVars</b></u></font><br /><ul><li><b>sm_voterespawn_cooldown</b> - Sets the cooldown time, in seconds, before another vote can take place. (Default: 300).</li>
</ul> <br /><font size="4"><u><b>To Do</b></u></font><br /><ul><li>Make the <b>&quot;sm_voterespawn_enabled&quot;</b> cvar work, so you can enable/disable the plugin on the fly.</li>
<li>Add a cvar to decide which minimum percentage of votes you need for the vote to pass.</li>
</ul><br /><br />The plugin also has <b>translation files</b>, currently, just English and Spanish.<br /><br /><br />This is <b>my first plugin from scratch</b>. I took inspiration from code by Powerlord (<a href="https://forums.allie...d.php?t=208008"target="_blank">NativeVotes</a>) and Seb3pg (<a href="https://forums.alliedmods.net/showthread.php?p=657631" target="_blank">TF2 Vote Scramble</a>).<br />I'm aware that the code may have some mistakes and it may not be the most optimal, so feel free to criticize, but in a constructive way, please. :)</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/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...67"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1467128615">GetSource</a> (VoteRespawn.sp - 7.9 KB)


</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/smx.gif"alt="File Type: smx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...Respawn.smx</a>(9.5 KB)


</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/txt.gif"alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...phrases.txt</a>(2.0 KB)


</td>
</tr>
</table>
</fieldset>


</div>

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych