Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

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

[ANY] ConVar Faker


  • 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:7170
  • Lokalizacja:AMXX.PL
Offline

Napisano 01.10.2013 17:15

<!-- BEGIN TEMPLATE: postbit_external -->
<div><font face="Impact"><div align="center"><font size="6">[ANY] ConVar Faker</font></div></font><br /><div align="center"><font size="2"><i>v1.0.0</i></font></div><br /><b><font size="4">Description:</font></b><br />Allows you to customize the value of client-side replicated cvars for clients. Some possible use-cases are to mask the value of sv_downloadurl in the console (the actual URL is still fairly easily obtainable), to enable the wait command only for admins, or to allow some users to use client-side cheats.<br /><br /><b><font size="4">Cvars:</font></b><ul><li><b>cvar_faker_version</b> - plugin version</li>
<li><b>cvar_faker_auto_update</b> - enables automatic updating (has no effect if <a href="https://forums.allie...ad.php?t=169095" title="AlliedModders - Thread 169095">Updater</a> is not installed)</li>
</ul><br /><b><font size="4">Configuration:</font></b><br />This plugin requires a configuration file under configs/cvar_faker.cfg in your SourceMod directory.<br /><br />Here is an example file:<br /><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">&quot;ConVar_Faker&quot;<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;sv_cheats&quot; // Enable sv_cheats on the client-side for root admins (allows client-side cheat commands)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;flags&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;z&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;value&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;1&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;sv_downloadurl&quot; // Mask sv_downloadurl for all players (this doesn't provide any real security)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;value&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;*** PROTECTED ***&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;tf_weapon_criticals&quot; // Disable client-side crit effects for people without the &quot;a&quot; flag<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;flags&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;a&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;flagtype&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;not&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;value&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;0&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;sv_allow_wait_command&quot; // Allow the wait command for people with the &quot;a&quot; flag<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;flags&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;a&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;value&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;1&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->Each section's name should be the cvar's name. Each section requires a &quot;value&quot; field for the value to send to clients. &quot;flags&quot; is optional and will determine if a value is sent to a client based on their admin flags. &quot;flagtype&quot; is also optional and will default to &quot;any&quot;. Possible values for &quot;flagtype&quot; are:<ul><li>any - Client must have <b>any</b> of the flags listed</li>
<li>all - Client must have <b>all</b> of the flags listed</li>
<li>not - Client must <b>not</b> have <b>any</b> of the flags listed</li>
</ul><br /><b><font size="4">Installation:</font></b><br />Put convarfaker.smx into /addons/sourcemod/plugins, and reboot your server or type &quot;sm plugins load convarfaker&quot; into your console or rcon.<br /><br /><b><font size="4">Auto Update:</font></b><br />Install <a href="https://forums.allie...ad.php?t=169095" title="AlliedModders - Thread 169095">Updater</a>. The plugin will be auto-updated according to your Updater settings. It'll work without Updater.<br /><br /><b><font size="4">Changelog:</font></b><ul><li><b>v1.0.0 (10/1/13)</b><ul><li>Initial release</li>
</ul></li>
</ul><br /><b><font size="3"><a href="https://bitbucket.or...convarfaker.smx" target="_blank">Download Plugin (convarfaker.smx)</a></font></b><font size="3"><br /><a href="https://bitbucket.org/Doctor_McKay/public-plugins/src/default/scripting/convarfaker.sp" target="_blank">View Source (convarfaker.sp)</a></font><br /><br /><i><font size="1">Requires <a href="https://forums.alliedmods.net/showthread.php?t=169095" title="AlliedModders - Thread 169095">updater.inc</a> and <a href="https://bitbucket.org/Doctor_McKay/public-plugins/src/default/scripting/mckayupdater.sp" target="_blank">mckayupdater.sp</a> to compile.</font></i></div>


<!-- END TEMPLATE: postbit_external -->

Wyświetl pełny artykuł




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

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