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

[ANY] Spray Manager (1.0)


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

Napisano 09.08.2013 17:00

<!-- BEGIN TEMPLATE: postbit_external -->
<div><div align="center"><font size="7">Spray Manager<font size="2"> <font size="1">by shavit</font></font><br /><font size="2">The ultimate spray manager<br /><br /><font size="4">Version 1.0<br /><br /></font></font></font><div align="left"><font size="3">Description:<br /><font size="2">Spray Manager is a plugin that was made for my server and has some useful features.<br /><br /><font size="4"><font size="3">Features:<br /><font size="2">Spray Manager includes features that can help you in a case of an inappropriate spray, or just a spray that you don't want to see.</font><br /><br />Commands:<br /><font size="1">* All the commands can be accessed through the admin menu under Player Commands.<br /><font size="2"><font size="1">** All the commands can be used in the chat as !command or /command instead of sm_command.</font><br /><br />sm_sprayban or sm_sban - Usage: sm_sprayban &lt;target&gt;<br />Bans a player from spraying.<br />Needed access: Ban<br /></font></font></font></font></font></font><br /><font size="3"><font size="2"><font size="4"><font size="3"><font size="1"><font size="2"><font size="3"><font size="2"><font size="4"><font size="3"><font size="1"><font size="2">sm_sprayunban or sm_sunban - Usage: sm_sprayunban &lt;target&gt;<br />Unbans a spray banned player from spraying.</font></font></font></font></font></font></font></font></font></font></font></font><br /><font size="3"><font size="2"><font size="4"><font size="3"><font size="1"><font size="2">Needed access: Unban</font></font></font></font></font></font><br /><br /><font size="3"><font size="2"><font size="4"><font size="3"><font size="1"><font size="2"><font size="3"><font size="2"><font size="4"><font size="3"><font size="1"><font size="2"><font size="3"><font size="2"><font size="4"><font size="3"><font size="1"><font size="2"><font size="3"><font size="2"><font size="4"><font size="3"><font size="1"><font size="2">sm_sbans or sm_spraybans - Usage: sm_sprayunban &lt;target&gt;<br />Unbans a spray banned player from spraying.</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><br /><font size="3"><font size="2"><font size="4"><font size="3"><font size="1"><font size="2"><font size="3"><font size="2"><font size="4"><font size="3"><font size="1"><font size="2"><font size="3"><font size="2"><font size="4"><font size="3"><font size="1"><font size="2"><font size="3"><font size="2"><font size="4"><font size="3"><font size="1"><font size="2"><font size="3"><font size="2"><font size="4"><font size="3"><font size="1"><font size="2">Needed access: Generic</font></font></font></font></font></font><br /></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font> <br /><font size="3">Admin Menu Support:</font><br /><font size="2">This plugin comes with support for the basic admin menu plugin that comes with SourceMod, and include its commands in the Player Commands category.<br /><br />Example:<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;"><img src="http://i.imgur.com/I79188F.jpg" border="0" alt="" /></div>
</div>
</div><br /></font><br /><font size="3"> Requirements:</font><br /><font size="2">MetaMod: Source 1.10 developer snapshot+<br />SourceMod 1.5 developer snapshot+<br />The basic adminmenu.smx plugin that comes with SourceMod.<br />The basic Client Preferences (clientprefs) extension &amp; plugin that comes with SourceMod.<br /><a href="http://forums.allied...ad.php?t=148387" target="_blank">SMLib</a> to compile.<br /><br /></font><font size="2"><font size="3">Installation:</font><br /><img src="https://dl.dropboxusercontent.com/u/80272443/Untitled.gif" border="0" alt="" /><br /><br /><font size="3">Planned:<br /><font size="2">MySQL/SQLite support</font>.<br /></font> <br /><font size="3">ConVars:</font><br /></font><font size="2"><!-- 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"> // ConVars for plugin &quot;spraymanager.smx&quot;</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></font><!-- 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"><font size="2"><font size="2">// &quot;Spray Manager&quot; version<br />// -<br />sm_spraymanager_version &quot;1.0&quot;<br /><br /></font> // Enable &quot;Spray Manager&quot;?<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />sm_spraymanager_enabled &quot;1&quot;<br /><br />// Where players will see the owner of the spray that they're aiming at?<br />// 0 - Disabled<br />// 1 - Hud hint <a href="http://i.imgur.com/R1AyN5h.jpg" target="_blank">http://i.imgur.com/R...yN5h.jpg</a><br />// 2 - Hint text (like sm_hsay) <a href="http://i.imgur.com/5TS4P4p.jpg" target="_blank">http://i.imgur.com/5...4P4p.jpg</a><br />// 3 - Center text (like sm_csay) <a href="http://i.imgur.com/NEhtie0.jpg" target="_blank">http://i.imgur.com/N...tie0.jpg</a><br />// 4 - HUD (if supported by the game) (I can't post a screenshot, if someone runs it on a game that supports HUD please give me a screenshot)<br />// 5 - Top left (like sm_tsay) <a href="http://i.imgur.com/m3o7YkL.jpg" target="_blank">http://i.imgur.com/m...7YkL.jpg</a><br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;5.000000&quot;<br />sm_spraymanager_textloc &quot;1&quot;</font></code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><font size="1">* This config file is auto-created in srcds/mod/cfg/sourcemod with the name spraymanager.cfg.</font><br /><br /><font size="3">Developers' API:<br /><font size="2">The plugin comes with an include file that you can easily use with other plugins.<br /><br />Natives:<br /></font></font><font size="2"><!-- 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"> /**<br />&nbsp;* Ban a player from using sprays.<br />&nbsp;* <br />&nbsp;* @param client&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Client index.<br />&nbsp;* @error&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Throw error if client is invalid/already spray banned.<br />&nbsp;* @noreturn<br />&nbsp;*/<br />native SprayManager_BanClient(client);<br /><br />/**<br />&nbsp;* Unban a spray banned player from using sprays.<br />&nbsp;* <br />&nbsp;* @param client&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Client index.<br />&nbsp;* @error&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Throw error if client is invalid/not banned.<br />&nbsp;* @noreturn<br />&nbsp;*/<br />native SprayManager_UnbanClient(client);<br /><br />/**<br />&nbsp;* Check if the client is spray banned.<br />&nbsp;* @param client&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Client index.<br />&nbsp;* @error&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Throw error if client is invalid.<br />&nbsp;* @return&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; True if spray banned, false otherwise.<br />&nbsp;*/<br />native SprayManager_IsBanned(client);</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></font><font size="3"><font size="2"><br /><br />Forwards:<br /></font></font><!-- 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">/**<br />&nbsp;* Called when a client gets spray banned.<br />&nbsp;*<br />&nbsp;* @param client&nbsp; &nbsp; &nbsp; &nbsp; Client index<br />&nbsp;*<br />&nbsp;* @noreturn<br />&nbsp;*/<br />forward SprayManager_OnBan(client);<br /><br />/**<br />&nbsp;* Called when a client gets spray unbanned.<br />&nbsp;*<br />&nbsp;* @param client&nbsp; &nbsp; &nbsp; &nbsp; Client index<br />&nbsp;*<br />&nbsp;* @noreturn<br />&nbsp;*/<br />forward SprayManager_OnUnban(client);</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><font size="3"><font size="2"><br /><br />Example of usage:<br /></font></font><!-- 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">#include &lt;sourcemod&gt;<br />#include &lt;spraymanager&gt;<br /><br />#pragma semicolon 1<br /><br />public Plugin:myinfo = <br />{<br />&nbsp; &nbsp; name = &quot;[Spray Manager] Ban Check&quot;,<br />&nbsp; &nbsp; author = &quot;shavit&quot;,<br />&nbsp; &nbsp; description = &quot;Check if you are banned from spraying&quot;,<br />&nbsp; &nbsp; version = &quot;1.0&quot;,<br />&nbsp; &nbsp; url = &quot;not vgames&quot;<br />}<br /><br />public OnPluginStart()<br />{<br />&nbsp; &nbsp; RegConsoleCmd(&quot;sm_sbanned&quot;, Command_SBanned, &quot;Are you spray banned?&quot;);<br />}<br /><br />public Action:Command_SBanned(client, args)<br />{<br />&nbsp; &nbsp; ReplyToCommand(client, &quot;x04[Spray Manager]x01 You are %s.&quot;,&nbsp; SprayManager_IsBanned(client)? &quot;x07FF0000BANNED&quot;:&quot;x0700FFAANOT&nbsp; BANNED&quot;);<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; return Plugin_Handled;<br />}</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></div></div></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=123988"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1376064049">Get Source</a> (spraymanager.sp - 16.6 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<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...38;d=1376064054">spraymanager.smx</a> (20.3 KB)


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


<a href="https://forums.allie...38;d=1376064061">spraymanager.inc</a> (1.4 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>


</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