PtokaX forum

Archive => Archived 5.1 boards => Request for scripts => Topic started by: [OnLy]-PiTiCu on 26 February, 2008, 21:22:48

Title: Disable +me Command
Post by: [OnLy]-PiTiCu 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
Title: Re: Disable +me Command
Post by: ruler on 26 February, 2008, 21:50:03
can try this

-- 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
Title: Re: Disable +me Command
Post by: [OnLy]-PiTiCu on 27 February, 2008, 20:58:57
Thx ruler ,testing script and working, Thx Mutor



[OnLy]-PiTiCu
Title: Re: Disable +me Command
Post by: ruler 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.