PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: ?[-?Genius?-]? on 12 September, 2005, 23:13:06

Title: Report
Post by: ?[-?Genius?-]? on 12 September, 2005, 23:13:06
Hi ppl

I need cmd !report

User report a bad user ou another for opchat.

[][]s
Title:
Post by: ?[-?Genius?-]? on 13 September, 2005, 13:50:49
Tankx You :)))
Title: Re: Report
Post by: Rob Slob on 23 August, 2006, 08:37:50
Can i change so VIP and such can't read others report? ...but only admin, operator can read reports?
Title: Re: Report
Post by: Rob Slob on 28 August, 2006, 14:52:44
How do i change so i don't get a sub meny botname > user report >
it's the sub meny "user report" i would like to remove so it would be
For OP and admin

botname >
                Submit report
                Read reports

For users
botname >
                Submit report

Thanks in advance Mutor  :)
Title: Re: Report
Post by: ??']['??l? on 28 August, 2006, 15:32:31
Just Change this:
function ReportCommands(user)
--user:SendData("$UserCommand 255 3 "..RepCfg.Menu.."\\"..RepCfg.SubMenu) --clear the menu first
user:SendData("$UserCommand 1 3 "..RepCfg.Menu.."\\"..RepCfg.SubMenu.."\\Submit Report $<%[mynick]> "..RepCfg.Report.." %[line:Report Text]||")
user:SendData("$UserCommand 1 3 "..RepCfg.Menu.."\\"..RepCfg.SubMenu.."\\Read Reports $<%[mynick]> "..RepCfg.GetReport.." %[line:User Name (Read Reports From This User)]||")
end


To this:
function ReportCommands(user)
--user:SendData("$UserCommand 255 3 "..RepCfg.Menu.."\\"..RepCfg.SubMenu) --clear the menu first
user:SendData("$UserCommand 1 3 "..RepCfg.Menu.."\\Submit Report $<%[mynick]> "..RepCfg.Report.." %[line:Report Text]||")
user:SendData("$UserCommand 1 3 "..RepCfg.Menu.."\\Read Reports $<%[mynick]> "..RepCfg.GetReport.." %[line:User Name (Read Reports From This User)]||")
end


You just have to remove "..RepCfg.SubMenu.."\\
You can find this part from the end of script... :)
Title: Re: Report
Post by: Rob Slob on 29 August, 2006, 12:13:36
Thank you :)
Title: Re: Report
Post by: Rob Slob on 30 August, 2006, 22:14:02
The menu for report and read report doesnt work when i changed ....  :-\