gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
76793 Posts in 13502 Topics by 1651 Members - Latest Member: Arnold99 November 22, 2024, 05:54:12 pm
*
gfx*gfx
gfx
WinMX World :: Forum  |  Metis Scripts and Help  |  Other Metis scripts  |  Commands Spy
gfx
gfxgfx
 

Author Topic: Commands Spy  (Read 1821 times)

0 Members and 1 Guest are viewing this topic.

Offline Zénar

  • Forum Member
  • *****
  • Born again christian since 2010!
Commands Spy
« on: December 02, 2006, 03:10:08 am »
This script will show in the room when someone will kick an user etc...

Warning:
This script works ONLY on WCS because i've made that script into this server. This is an old script and I can't say if it will work with you. If not, change this script.

Code: [Select]
<usergroup name="KBadmin" case="1"> //All names here will not show any commands in the room.

//Don't remove that name!
*_BOT_SELF_TRIGGER_*
</usergroup>

<OnOpMessage type="script" usergroup="!KBadmin">
<in>%PARAMETER%</in>
<out type="push" extdata="KBOPmsg">%PARAMETER%</out>
<out type="push" extdata="KBOPmsg"><operator type="strright" lvalue="$KBOPmsg$" rvalue="2"/></out>
<out type="push" extdata="KBOPmsgLWR"><operator type="strlwr" lvalue="$KBOPmsg$"/></out>
<out type="push" extdata="KBlen"><operator type="strfind" lvalue="$KBOPmsg$" rvalue="/"/></out>
<out type="break" condition="!=" lvalue="$KBlen$" rvalue="0"/>
<out type="push" extdata="KBname"><operator type="strright" lvalue="%NAME%" rvalue="5"/></out>
<out type="push" extdata="KBlen"><operator type="strlen" lvalue="$KBname$"/></out>
<out type="push" extdata="KBlen"><operator type="-" lvalue="$KBlen$" rvalue="2"/></out>
<out type="push" extdata="KBname"><operator type="strleft" lvalue="$KBname$" rvalue="$KBlen$"/></out>
<out type="push" extdata="KBlen"><operator type="-" lvalue="$KBlen$" rvalue="10"/></out>
<out type="push" extdata="KBname"><operator type="strleft" lvalue="$KBname$" rvalue="$KBlen$"/></out>

//######################################################################
//# If you want to save all commands in a file, put 1 in rvalue below. #
//######################################################################
<out type="file" mode="a" extdata="C:\RoomCommands.ini" condition="==" lvalue="1" rvalue="0">[%LOCALTIME%] $KBname$ «» $KBOPmsg$\n</out>

//############################################################################################################
//# If you want to show all commands in opmsg, put 1 in rvalue below but commands will not show in the room. #
//############################################################################################################
<out type="push" extdata="KBexileName">0</out>

<out type="push" extdata="KBkickORban">0</out>
<out type="push" extdata="KBkickORban" condition="?" lvalue="$KBOPmsgLWR$" rvalue="/">99</out>
<out type="push" extdata="KBkickORban" condition="?" lvalue="$KBOPmsgLWR$" rvalue="/kick ">1</out>
<out type="push" extdata="KBkickORban" condition="?" lvalue="$KBOPmsgLWR$" rvalue="/ban ">2</out>
<out type="push" extdata="KBkickORban" condition="?" lvalue="$KBOPmsgLWR$" rvalue="/exile ">3</out>
<out type="push" extdata="KBkickORban" condition="?" lvalue="$KBOPmsgLWR$" rvalue="/kickban ">4</out>
<out type="push" extdata="KBkickORban" condition="?" lvalue="$KBOPmsgLWR$" rvalue="/banip ">5</out>
<out type="push" extdata="KBkickORban" condition="?" lvalue="$KBOPmsgLWR$" rvalue="/setaccess ">6</out>
<out type="break" condition="?" lvalue="$KBOPmsgLWR$" rvalue="/notice "/> //I don't want to see notices! ;o)
<out type="break" condition="==" lvalue="$KBkickORban$" rvalue="0"/>

<out type="script" condition="==" lvalue="$KBexileName$" rvalue="1">/opmsg $KBname$ «» $KBOPmsg$</out>
<out type="break" condition="==" lvalue="$KBexileName$" rvalue="1"/>

<out type="push" extdata="KBOPmsg" condition="==" lvalue="$KBkickORban$" rvalue="1"><operator type="strright" lvalue="$KBOPmsg$" rvalue="6"/></out>
<out type="script" condition="==" lvalue="$KBkickORban$" rvalue="1">#c6#$KBname$ #c2#used command #c5#kick #c2#on #c4#$KBOPmsg$</out>

<out type="push" extdata="KBOPmsg" condition="==" lvalue="$KBkickORban$" rvalue="2"><operator type="strright" lvalue="$KBOPmsg$" rvalue="5"/></out>
<out type="script" condition="==" lvalue="$KBkickORban$" rvalue="2">#c6#$KBname$ #c2#used command #c5#ban #c2#on #c4#$KBOPmsg$</out>

<out type="push" extdata="KBOPmsg" condition="==" lvalue="$KBkickORban$" rvalue="3"><operator type="strright" lvalue="$KBOPmsg$" rvalue="7"/></out>
<out type="push" extdata="KBlen" condition="==" lvalue="$KBkickORban$" rvalue="3"><operator type="strfind" lvalue="$KBOPmsg$" rvalue=" "/></out>
<out type="push" extdata="KBexileName" condition="==" lvalue="$KBkickORban$" rvalue="3"><operator type="strleft" lvalue="$KBOPmsg$" rvalue="$KBlen$"/></out>
<out type="push" extdata="KBOPmsg" condition="==" lvalue="$KBkickORban$" rvalue="3"><operator type="strrep" nvalue="$KBOPmsg$" lvalue="$KBexileName$ " rvalue=" "/></out>
<out type="script" condition="==" lvalue="$KBkickORban$" rvalue="3">#c6#$KBname$ #c2#used command #c5#exile #c2#to send #c4#$KBexileName$ #c2#to#c4#$KBOPmsg$</out>

<out type="push" extdata="KBOPmsg" condition="==" lvalue="$KBkickORban$" rvalue="4"><operator type="strright" lvalue="$KBOPmsg$" rvalue="9"/></out>
<out type="script" condition="==" lvalue="$KBkickORban$" rvalue="4">#c6#$KBname$ #c2#used command #c5#kickban #c2#on #c4#$KBOPmsg$</out>

<out type="push" extdata="KBOPmsg" condition="==" lvalue="$KBkickORban$" rvalue="5"><operator type="strright" lvalue="$KBOPmsg$" rvalue="7"/></out>
<out type="script" condition="==" lvalue="$KBkickORban$" rvalue="5">#c6#$KBname$ #c2#used command #c5#banip #c2#on #c4#$KBOPmsg$</out>

<out type="push" extdata="KBOPmsg" condition="==" lvalue="$KBkickORban$" rvalue="6"><operator type="strright" lvalue="$KBOPmsg$" rvalue="11"/></out>
<out type="push" extdata="KBlen" condition="==" lvalue="$KBkickORban$" rvalue="6"><operator type="strfind" lvalue="$KBOPmsg$" rvalue=" "/></out>
<out type="push" extdata="KBexileName" condition="==" lvalue="$KBkickORban$" rvalue="6"><operator type="strleft" lvalue="$KBOPmsg$" rvalue="$KBlen$"/></out>
<out type="push" extdata="KBOPmsg" condition="==" lvalue="$KBkickORban$" rvalue="6"><operator type="strrep" nvalue="$KBOPmsg$" lvalue="$KBexileName$ " rvalue=" "/></out>
<out type="script" condition="==" lvalue="$KBkickORban$" rvalue="6">#c6#$KBname$ #c2#used command #c5#setaccess #c2#on #c4#$KBexileName$ #c2#to that access:#c4#$KBOPmsg$</out>

<out type="break" condition="!=" lvalue="$KBkickORban$" rvalue="99"/>
<out type="push" extdata="KBOPmsg"><operator type="strright" lvalue="$KBOPmsg$" rvalue="1"/></out>
<out type="push" extdata="KBlen"><operator type="strfind" lvalue="$KBOPmsg$" rvalue=" "/></out>
<out type="push" extdata="KBexileName"><operator type="strleft" lvalue="$KBOPmsg$" rvalue="$KBlen$"/></out>
<out type="script" condition="==" lvalue="$KBlen$" rvalue="-1">#c6#$KBname$ #c2#used command #c5#$KBOPmsg$</out>
<out type="script" condition="!=" lvalue="$KBlen$" rvalue="-1">#c6#$KBname$ #c2#used command #c5#$KBexileName$</out>
</OnOpMessage>
[John 14:6] Jesus told him, "I am the way, the truth, and the life. No one can come to the Father except through me."
[Jean 14:6] Jésus lui dit: Je suis le chemin, la vérité, et la vie. Nul ne vient au Père que par moi.

WinMX World :: Forum  |  Metis Scripts and Help  |  Other Metis scripts  |  Commands Spy
 

gfxgfx
gfx
©2005-2024 WinMXWorld.com. All Rights Reserved.
SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies
Page created in 0.008 seconds with 23 queries.
Helios Multi © Bloc
gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!