<!-- BEGIN TEMPLATE: postbit_external -->
<div><b><font size="4">Description</font></b><br />This is a new version of my plugin <a href="https://forums.allie...ad.php?t=237530" target="_blank">TOG's Connect Messages</a>. I started this in a new thread to leave the old one accessible/approved.<br /><br />This plugins allows server owners to create as many setups as desired for custom connect/disconnect messages. Each setup has customizable chat colors, tags, tag colors, and access flags required to activate the messages. Setups can also be STEAM ID specific to apply just to a single player (just use the STEAM ID as the setup title and place above any setups for groups). Additionally, setups can define a group or player to skip connect and/or disconnect messages for.<br /><br />I also included a feature that will disable it for a configurable time on map start, then enable it for connecting players afterwards the set time. This feature is off by default, but is included in case someone wanted to have a setup that applies to all players, but does not want the message spam on map starts.<br /><br /><u>Notes:</u><ul><li>The plugin uses the first applicable tag found, so order them accordingly.</li>
<li>If the flag line is left out of a setup, or if the flag is set to "public", it is available to all players.</li>
<li>If the flag line is included, but left blank (i.e. <i><b>""</b></i>), it will apply to players with ANY admin flags (including reserve slot or custom flags).</li>
<li>The flag line can use combinations of flags (e.g. <i><b>"ast"</b></i> will check for all three flags).</li>
</ul><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>CVars</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;"><br /><b>tcm_delay</b> - Amount of time (in seconds) after map start until connect messages are enabled.<br /><br /><b>tcm_enabled</b> - Enable/disable entire plugin. (0 = Disabled, 1 = Enabled).<br /><br /><b>tcm_enabledelay</b> - Enables skipping of connect announcements after map change until the time set by tcm_delay.<br /></div>
</div>
</div><br /><b><font size="4">Admin Commands</font></b><br />sm_reloadtcm - Reloads setups (also found in admin menu under "Server Commands")<br /><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Sample Setup</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;"><!-- 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 />////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br />//<br />//Possible Key-Values:<br />// <br />// //player's personal connect msg <<<putting two slashes will allow you to leave comments above each setup for organization<br />// "STEAM_0:0:1234567" <<<this can be named anything. If it matches a players steam ID, it will be available to them only, else, it is just a section name<br />// {<br />// "connectmsg" "1" <<<if setup applies to player, it will show after they connect (1 = enable, 0 = disable, default = 0)<br />// "disconnectmsg" "1" <<<if setup applies to player, it will show after they disconnect (1 = enable, 0 = disable, default = 0)<br />// "ignoreconnect" "1" <<<if setup applies to player, it will block connect messages (1 = enable, 0 = disable, default = 0)<br />// "ignoredisconnect" "1" <<<if setup applies to player, it will block disconnect messages (1 = enable, 0 = disable, default = 0)<br />// "center" "1" <<<enable/disable announcement in center of screen (1 = enable, 0 = disable, default = 1)<br />// "chat" "1" <<<enable/disable announcement in chat (1 = enable, 0 = disable, default = 1)<br />// "message" "{tag} {playername} Connected" <<<message to be displayed. {tag} is replaced with the tag defined below, {playername} is replaced with the player's current name (default = "{tag} {playername} Connected/Disconnected")<br />// "tag" "=Hacker=" <<<tag to use if {tag} is in the message (more useful for groups, since individual players can just put it as part of the msg) (default = "[TagNotSet]")<br />// "tagcolor" "FFFF00" <<<hex color code used for tag in chat messages (default = "FFFFFF")<br />// "chatcolor" "FFFF00" <<<hex color code used for chat messages (default = "FFFFFF")<br />// }<br />//<br />//Note: any missing lines will assume their default values.<br />//<br />//////////////////////////////////////////////////////////////////////////////////<br />//<br />//Order of Operations:<br />//<br />//Players get the first matching setup. That said, this is the suggested order to organize your setups:<br />//Personal setups -> group 'ignore' setups -> group setups.<br />//<br />//For all setups, be sure to make check which setup first applies. e.g. if admins have flags 'b' and 's' and donators have 's',<br />//make sure the admin setup comes first, else they will get the donator setup.<br />//<br />//Admin command to reload setups: sm_reloadtcm ("Reload Connect/Disconnect Setups" is also added in the admin menu under "Server Commands")<br />//<br />////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br />////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br />"Setups"<br />{<br /> //player1's personal connect msg<br /> "STEAM_0:0:1234567"<br /> {<br /> "connectmsg" "1"<br /> "center" "1"<br /> "chat" "1"<br /> "message" "{tag} {playername} Connected"<br /> "tag" "=Hacker="<br /> "tagcolor" "FFFF00"<br /> "chatcolor" "FFFF00"<br /> }<br /> //player1 wants no announcement of their disconnects<br /> "STEAM_0:0:1234567"<br /> {<br /> "ignoredisconnect" "1"<br /> }<br /> //player2's personal connect msg: Their tag is their name using the color red ("FF0000"). e.g. "(color=Red)Player2 (color=Yellow)is in the house!"<br /> "STEAM_0:0:0987654"<br /> {<br /> "connectmsg" "1"<br /> "center" "1"<br /> "chat" "1"<br /> "message" "{tag} is chillin!"<br /> "tag" "{playername}"<br /> "tagcolor" "FF0000"<br /> "chatcolor" "FFFF00"<br /> }<br /> //player2's personal disconnect msg: No name in message, Red text "The Troll", followed by yellow text "has retreated!"<br /> "STEAM_0:0:0987654"<br /> {<br /> "connectmsg" "1"<br /> "center" "1"<br /> "chat" "1"<br /> "message" "{tag} has retreated!"<br /> "tag" "The Troll"<br /> "tagcolor" "FF0000"<br /> "chatcolor" "FFFF00"<br /> }<br /> //hide admins connecting to the server<br /> "AdminConnect"<br /> {<br /> "ignoreconnect" "1"<br /> "flags" "b"<br /> }<br /> //hide admins disconnecting from the server<br /> "IgnoreAdminDisconnect"<br /> {<br /> "ignoredisconnect" "1"<br /> "flags" "b"<br /> }<br /> //note, flag below is the letter 'o', not the number '0'. Tag color is different than the rest of the message.<br /> "VIPConnect"<br /> {<br /> "connectmsg" "1"<br /> "flags" "o"<br /> "center" "1"<br /> "chat" "1"<br /> "message" "{tag} {playername} joined the server!"<br /> "tag" "[VIP]"<br /> "tagcolor" "FFFF00"<br /> "chatcolor" "00FF00"<br /> }<br /> //tag color line is missing, so it will use the default color "FFFFFF"<br /> "VIPDisconnect"<br /> {<br /> "disconnectmsg" "1"<br /> "flags" "o"<br /> "center" "1"<br /> "chat" "1"<br /> "message" "{tag} {playername} left the server!"<br /> "tag" "[VIP]"<br /> "chatcolor" "00FF00"<br /> }<br /> "Donator"<br /> {<br /> "connectmsg" "1"<br /> "flags" "s"<br /> "center" "1"<br /> "chat" "1"<br /> "message" "{tag} {playername} Connected"<br /> "tag" "[Donator]"<br /> "tagcolor" "FFFF00"<br /> "chatcolor" "FFFF00"<br /> }<br /> //tag can be left out of message, and therefore tag key-value lines ("tag" and "tagcolor") are not required<br /> "Member"<br /> {<br /> "connectmsg" "1"<br /> "flags" "t"<br /> "center" "1"<br /> "chat" "1"<br /> "message" "{playername} Connected"<br /> "chatcolor" "FFFF00"<br /> }<br />}</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></div>
</div>
</div><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Changelog</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;"><br />03/31/14 (v3.1)<ul><li>Added ability to create setups for ignoring players/groups</li>
<li>Changed default values of some key-value lines in case they are left out</li>
<li>Added ability to use separate colors for tag</li>
</ul><br />03/30/14 (v3.0)<ul><li>Added ability to specify if setup is for connect and/or disconnect messages</li>
<li>Added ability to use any text desired in messages</li>
<li>Added command in admin menu to reload setups</li>
</ul><br />03/25/14 (v2.1)<br />- Initial release.<br /></div>
</div>
</div><br /><br /><b><font size="4">Installation</font></b><br />Install togconnectmsg_v3_1.smx in <i>cstrike/addons/sourcemod/plugins/</i> folder.<br />Install tog_connectmsgs.txt in <i>cstrike/addons/sourcemod/configs/</i> folder.<br /><br /><a href="http://www.gametrack...ort=&order=" target="_blank"><b><i>Servers using this plugin</i></b></a><br /><a href="http://www.sourcemod.net/plugins.php?cat=0&mod=-1&title=&author=thatoneguy&description=&search=1" target="_blank"><i><b>>>> Click here to check out my approved plugins <<<</b></i></a></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=132206"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1396333497">Get Source</a> (togconnectmsgs_v3_1.sp - 12.5 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=1396333503">togconnectmsgs_v3_1.smx</a> (12.6 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<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...38;d=1396333507">tog_connectmsgs.txt</a> (5.3 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
TOG's Connect Messages v3.1
Temat rozp. Adminek AMXX.PL, 01.04.2014 07:35
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych