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] Admin See WHO Typed All Commands (v1.0 / 8 JAN 2015)


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

Napisano 08.01.2015 15:05

<!-- BEGIN TEMPLATE: postbit_external -->
<div><b>What does this do?</b><br /><br />Allows admins with default <b>sm_seecmds_override &quot;d&quot;</b> which is also ADMFLAG_BAN to toggle a command which allows them to see all typed commands and who typed them in chat or console. It will print in this format: [command] userid# clientname steamid *command<br /><br />When it outputs to the log file this is the format: [command] userid# clientname steamid ip-address *command<br /><br />These admins with default <b>sm_seecmds_override</b> <b>&quot;d&quot;</b> which is also ADMFLAG_BAN are able to then type /logit or in console sm_logit to have this plugin send the last 100 previous commands from its buffer to a log file named similar to LogStackBuffer_01_08_15.log<br /><br />The debug log file looks like SeeAllCommandsDebug_01_08_15.log<br /><br /><br /><b>Why I wrote this?</b><br /><br />I've found that some commands, like !ff for friendly fire can get abused like crazy (especially since it is default enabled to show to all players in server for which a player can spam it like crazy and there is no logs or information about it), to be just utterly annoying. I had to &quot;learn&quot; to disable it by adding sm_trigger_show 0 to my server.cfg file ;(<br /><br />This plugin doesn't block anyone from typing commands, but it will give you detailed information every time they type the command.<br /><br />Example of what it spits out to chat:<br />[ff] #603 W3EElDiablo STEAM_0:1:35173666 * <br />[SM] Friendly Fire is disabled. <br /><br />[sm_rcon] #603 W3EElDiablo STEAM_0:1:35173666 *status <br /><br />Example to Log File:<br />L 01/08/2015 - 08:29:10: [voicemenu] #2 -W3E- El Diablo STEAM_0:1:35173666 1.2.3.4 *0 1<br />L 01/08/2015 - 08:29:10: [voicemenu] #2 -W3E- El Diablo STEAM_0:1:35173666 1.2.3.4 *0 2<br />L 01/08/2015 - 08:29:10: [voicemenu] #2 -W3E- El Diablo STEAM_0:1:35173666 1.2.3.4 *0 4<br />L 01/08/2015 - 08:29:10: [voicemenu] #2 -W3E- El Diablo STEAM_0:1:35173666 1.2.3.4 *0 5<br /><br />1.2.3.4 &lt;-- ip address<br /><br /><u><b><br />Chat Commands:</b></u><br /><br /><b>/seecommands</b> (<b>sm_seecommands</b> in console) - Toggles if you or your admin want to see who types what commands into chat. (You will have to re-enable this on every map change and when you reconnect)<br /><br /><b>/logit</b> (<b>sm_logit</b> in console) - Sends command stack buffer to log file of the last 100 commands. This number can be changed in the source file.<br /><br /><b><u>Convars:</u></b><br /><br />see <a href="https://wiki.alliedm...ns_(SourceMod)"target="_blank">https://wiki.alliedm...8SourceMod)</a> for more info on flags.<br /><br /><b>sm_hide_flag_commands</b> <b>&quot;z&quot;</b> - these flags are checked against the command's default flag and will hide the command from showing to you or the admin whom has enabled sm_seecommands.<br /><br /><b>sm_hide_all_admin_commands &quot;z&quot;</b> - these flags are checked against the user's flags. If the user has this flag and types in a command in chat or console, it will be hidden from all users whom have enabled sm_seecommands.<br /><br /><b>sm_see_unicode_filtering 0</b> - 1 to enabled / 0 to disable, If enabled, Filters unicode from command buffer and client name.<br /><br /><b>sm_see_debug_messages 0</b> - 1 to enabled / 0 to disable, if you want it to print out all the commands to a log file on start of plugin, set this in your server.cfg. If you want to see other debug messags while using this plugin, set to 1. It will tell you extra information about what kind of command was typed and if it was hidden or shown to users whom have sm_seecommand enabled.<br /><br /><b>sm_see_show_ip 0</b> - 1 to enabled / 0 to disable, Disabled by default. If enabled, allows users whom have sm_seecommand enabled to see the ip address of users whom type commands.<br /><br /><b>sm_see_admin_commands 1</b> - 1 to enabled / 0 to disable, If enabled before the plugin starts, it will hook all admin commands. If disabled, it will prevent hooking of admin commands. Must be set in server.cfg file before server is started or before loading the plugin.<br /><br /><b>sm_see_reg_commands 1</b> - 1 to enabled / 0 to disable, If enabled before the plugin starts, it will hook all reg commands. If disabled, it will prevent hooking of reg commands. Must be set in server.cfg file before server is started or before loading the plugin.<br /><br /><b>sm_see_print_commands 1</b> - 0 - print to console, 1 - print to chat</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.../attach/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...06"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1420725924">GetSource</a> (admin_see_all_commands.sp - 25.3 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