<!-- 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 <target><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 <target><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 <target><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 & 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 "spraymanager.smx"</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">// "Spray Manager" version<br />// -<br />sm_spraymanager_version "1.0"<br /><br /></font> // Enable "Spray Manager"?<br />// -<br />// Default: "1"<br />// Minimum: "0.000000"<br />// Maximum: "1.000000"<br />sm_spraymanager_enabled "1"<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: "1"<br />// Minimum: "0.000000"<br />// Maximum: "5.000000"<br />sm_spraymanager_textloc "1"</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 /> * Ban a player from using sprays.<br /> * <br /> * @param client Client index.<br /> * @error Throw error if client is invalid/already spray banned.<br /> * @noreturn<br /> */<br />native SprayManager_BanClient(client);<br /><br />/**<br /> * Unban a spray banned player from using sprays.<br /> * <br /> * @param client Client index.<br /> * @error Throw error if client is invalid/not banned.<br /> * @noreturn<br /> */<br />native SprayManager_UnbanClient(client);<br /><br />/**<br /> * Check if the client is spray banned.<br /> * @param client Client index.<br /> * @error Throw error if client is invalid.<br /> * @return True if spray banned, false otherwise.<br /> */<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 /> * Called when a client gets spray banned.<br /> *<br /> * @param client Client index<br /> *<br /> * @noreturn<br /> */<br />forward SprayManager_OnBan(client);<br /><br />/**<br /> * Called when a client gets spray unbanned.<br /> *<br /> * @param client Client index<br /> *<br /> * @noreturn<br /> */<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 <sourcemod><br />#include <spraymanager><br /><br />#pragma semicolon 1<br /><br />public Plugin:myinfo = <br />{<br /> name = "[Spray Manager] Ban Check",<br /> author = "shavit",<br /> description = "Check if you are banned from spraying",<br /> version = "1.0",<br /> url = "not vgames"<br />}<br /><br />public OnPluginStart()<br />{<br /> RegConsoleCmd("sm_sbanned", Command_SBanned, "Are you spray banned?");<br />}<br /><br />public Action:Command_SBanned(client, args)<br />{<br /> ReplyToCommand(client, "x04[Spray Manager]x01 You are %s.", SprayManager_IsBanned(client)? "x07FF0000BANNED":"x0700FFAANOT BANNED");<br /> <br /> 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ł
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

[ANY] Spray Manager (1.0)
Temat rozp. Adminek AMXX.PL, 09.08.2013 17:00
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych