Show last connected user
 

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

Show last connected user

Started by Skippy84, 19 April, 2005, 02:15:28

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Skippy84

--Version 1.0 by skippy

sBot = frmHub:GetHubBotName()


botDesc = "" 
botSpeed = "" 
botEmail = "" 
botShare = 0

startchars = "."  -- shows before 
endchrs = "(last_User)"       -- shows after 

first = 0

function NewUserConnected(user)
	if first < 1 then
   nick = user.sName
   first = 1
   frmHub:RegBot(startchars..nick..endchrs)
	else
   frmHub:UnregBot(startchars..nick..endchrs)
   nick = user.sName
   frmHub:RegBot(startchars..nick..endchrs)
	end
end

OpConnected=NewUserConnected

this script shows in the userlist the last connected user
at the first place

the german version of the Script can be found on

http://skippy.dyndns.ws/forum

GeceBekcisi

How to use this? As far as I see, there is no command to use :)
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

Skippy84

It?s no command needed it shows the last connected user in the  Userlist at the right site of the client

example

-example user(last_user)
next user
next user
.
.
.

have you an idea for a command ?

Skippy84

Here is a other version of the script it shows the last user
in the topic of the client

--Shows Last connected User in Topic
--Make by Skippy
--Version 1.0

addtxt = "(last_User_is:)"       -- shows for the Username 

nick = "-----"  -- this set the variable nick at a standart value

----------------------------------------------------------------------------------------


function GetBanner()
	hubname=frmHub:GetHubName()
	topic=frmHub:GetHubTopic()
	if topic then 
		banner=hubname.." "..addtxt.." "..nick.." - "..topic
	else
		banner=hubname.." "..addtxt..""..nick
	end
end



function NewUserConnected(user)
   nick = user.sName
   GetBanner()
   SendToAll("$HubName "..banner)
end

OpConnected=NewUserConnected

GeceBekcisi

Maybe some funny messages for 1000th, 2000th.... connected user since hub start and for 1000th, 2000th online user at hub at that moment. Just some ideas...
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

Skippy84

#5
--Version 1.2 von Skippy
   --added funktion to show custom messages then x=people in the Hub at the moment
--Version 1.1 von Skippy
   --added funktion to show custom messages then x=people at the Hub since scripts started
   
--Version 1.0 von Skippy
sBot = frmHub:GetHubBotName()


botDesc = "" 
botSpeed = "" 
botEmail = "" 
botShare = 0

startchars = "."  -- shows before
endchrs = "(letzter_User)"       -- shows after

first = 0
times = 0 --timer how many user are connected since hub started
timer = 0 --timer how many user at the moment in this hub

message = {
[1] = "you are skippyliceus you are the first people in this Hub",
[2] = "haha you are the second Hubbie here not the first, your to late",
[5] = "you are the 5. Lemming in this Hub",
}

messagr = {
[1] = "you are alone at this hub",
[2] = "haha you are the second Hubbie here not the first, your to late",
[3] = "you are the 3. people at the moment",
}
----------------------------------------------------------------------

function NewUserConnected(user)
  times = times + 1
	if message[times] then
  SendToAll(user.sName.. " " ..message[times] )
 end
  timer = timer + 1
	if messagr[timer] then
  SendToAll(user.sName.. " " ..messagr[timer] )
 end
	if first < 1 then
   nick = user.sName
   first = 1
   frmHub:RegBot(startchars..nick..endchrs)
	else
   frmHub:UnregBot(startchars..nick..endchrs)
   nick = user.sName
   frmHub:RegBot(startchars..nick..endchrs)
	end
end


function UserDisconnected(user)
 if timer > 0 then
  timer = timer -1
 end
end

OpConnected=NewUserConnected
OpDisconnected=UserDisconnected


the german Version of the Script can found on

http://skippy.dyndns.ws/forum   too.

SMF spam blocked by CleanTalk