PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Morbid on 23 March, 2004, 03:14:17

Title: Script To show Registered Users
Post by: Morbid on 23 March, 2004, 03:14:17
Hello..I know nothing about script writing..but I was wondering if someone had a script that will show (only) registered user to ops using a !reg list command or something like that...any help is appreciated

Sorry for all the typos I was tired when I posted this...
Title:
Post by: ??????Hawk?????? on 23 March, 2004, 03:43:57




bot = "reg_list"


function DataArrival(user, data)
local s,e,cmd,d = strfind(data, "%b<>%s+(%S+)(%S+)")
if user.bOperator ~= nil then
if cmd == "!showreg" then
ShowReg(user)
end
end
end



function ShowReg(user)
local aux,usr
for aux, usr in GetUsersByProfile("Reg") do
user:SendPM (bot,usr)
end
end



Title:
Post by: Corayzon on 23 March, 2004, 05:05:12
thats a nice simple way to put it :P..gehehee
Title:
Post by: Morbid on 23 March, 2004, 12:18:33
Thank you very much.
Title:
Post by: pHaTTy on 23 March, 2004, 13:16:14
*MOVED FROM SCRIPTS FOR 326+*

Next time please request in the correct section ;)
Title:
Post by: Morbid on 23 March, 2004, 14:21:55
Oh, sorry...I will not make that mistake again.