Userinfo Script On Connect
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Userinfo Script On Connect

Started by Cboy301, 19 February, 2004, 11:04:35

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cboy301

Looking for a script that would show info to user on connect like this:








Thanks,
       Mikey

Visit My Hub At kickincountry.no-ip.com

nErBoS

Hi,

Hope it helps..

--Requested by Cboy301
--Made by nErBoS

Bot = "Show-Info"
youradress = "lalala.mine.nu"

function Main()
	frmHub:RegBot(Bot)
end

function NewUserConnected(user, data)
	s,e,share = strfind(user.sMyInfoString, "$MyINFO $ALL [^$]+$ $[^$]*$[^$]*$([^$]+)")
	share = share / (1024*1024*1024)
	share = strsub(share, 1, 5)
	user:SendData(Bot, "Your nick: "..user.sName)
	user:SendData(Bot, "Your IP: "..user.sIP)
	user:SendData(Bot, "Name of The Bot: "..Bot)
	user:SendData(Bot, "The name of the Hub: "..frmHub:GetHubName())
	user:SendData(Bot, "The adress of the Hub: "..youradress)
	user:SendData(Bot, "The Hub description: "..frmHub:GetHubDescr())
	user:SendData(Bot, "The "..GetTime())
	user:SendData(Bot, "The "..GetDate())
	user:SendData(Bot, "You are sharing: "..share.." GB")
end

function GetTime()
	s = date("%S")
	h = date("%H")
	m = date("%M")
	time = "Hour: "..h..":"..m..":"..s
	return time
end

function GetDate()
	d = date("%d")
	mm = date("%m")
	y = date("%y")
	Date = "Date: "..d.."/"..mm.."/"..y
	return Date
end

Best regards, nErBoS
--## nErBoS Spot ##--

Cboy301

#2
Now what do i do if i wanna change what it says and does from time to time? If needed i can tell u other things i may want it to do.
Thanks,
       Mikey

Visit My Hub At kickincountry.no-ip.com

nErBoS

#3
Hi,

The script only shows the info when the user get connected.

Best regards, nErBoS
--## nErBoS Spot ##--

Cboy301

Sorry for the late response script works great thank you......... :)
Thanks,
       Mikey

Visit My Hub At kickincountry.no-ip.com

SMF spam blocked by CleanTalk