Author Topic: Disable +me Command  (Read 2220 times)

0 Members and 1 Guest are viewing this topic.

Offline [OnLy]-PiTiCu

  • Junior Member
  • **
  • Posts: 16
  • Karma: +1/-0
Disable +me Command
« on: 26 February, 2008, 21:22:48 »
Hey all,

Pls help with script for disable command " +me " for Ptokax 0.3.6.0.


Thx


[OnLy]-PiTiCu
[OnLy]-PiTiCu

PtokaX forum

Disable +me Command
« on: 26 February, 2008, 21:22:48 »

Offline ruler

  • Triple Ace
  • **
  • Posts: 180
  • Karma: +7/-2
    • DCHubAd
Re: Disable +me Command
« Reply #1 on: 26 February, 2008, 21:50:03 »
can try this
Code: [Select]
-- disable +me command 0.3.6.0 px
-- code by ruler
-----------------------------------------
function ChatArrival(user, data)
data=string.sub(data,1,string.len(data)-1)
s,e,cmd = string.find(data,"%b<>%s+(%S+)")
if ( cmd=="!me" or cmd=="+me" or cmd=="-me") then
return 1
end
end
-- end code

hope it works, not tested

Offline [OnLy]-PiTiCu

  • Junior Member
  • **
  • Posts: 16
  • Karma: +1/-0
Re: Disable +me Command
« Reply #2 on: 27 February, 2008, 20:58:57 »
Thx ruler ,testing script and working, Thx Mutor



[OnLy]-PiTiCu
[OnLy]-PiTiCu

Offline ruler

  • Triple Ace
  • **
  • Posts: 180
  • Karma: +7/-2
    • DCHubAd
Re: Disable +me Command
« Reply #3 on: 27 February, 2008, 23:39:45 »
np, i'd use Mutor's way as its less code and more direct plus its a faster way of doing it.

PtokaX forum

Re: Disable +me Command
« Reply #3 on: 27 February, 2008, 23:39:45 »