Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release] Simple players online page

Initiate Mage
Joined
Jan 4, 2015
Messages
2
Reaction score
2
UjWO5gR - [Release] Simple players online page - RaGEZONE Forums


Add the following to your database


ALTER PROCEDURE [dbo].[WEB_PlayersOnline]
as
BEGIN
SELECT uc.LastUpdateDate, uc.Gamertag, uc.CustomerID, ud.CustomerID, ud.IsDeveloper, ud.AccountType From UsersChars as uc
JOIN UsersData as ud ON
uc.CustomerID = ud.CustomerID
WHERE DATEDIFF(MINUTE, uc.LastUpdateDate, GETDATE()) <= 15
END


Files :
 

Attachments

You must be registered for see attachments list
Rival Gamers Owner
Loyal Member
Joined
Jul 7, 2007
Messages
962
Reaction score
161
if you wanted this i suggest you put a int column isOnline and update it to 1 when player loggs iin and 0 when logs out and just for a good mannor when server starts up set all to 0

your putting strain on mssql when not needed
 
Newbie Spellweaver
Joined
Jan 4, 2015
Messages
8
Reaction score
0
if you wanted this i suggest you put a int column isOnline and update it to 1 when player loggs iin and 0 when logs out and just for a good mannor when server starts up set all to 0

your putting strain on mssql when not needed
Good to know man thanks, and it is released as is no support!
 

GdZ

Newbie Spellweaver
Joined
Jan 18, 2015
Messages
9
Reaction score
9
have sript for Number players online ?
Exemple: Survivors Online: 13
please.
 
Junior Spellweaver
Joined
Oct 12, 2014
Messages
127
Reaction score
22
would have something to change there?
wanted it to be by numbers
"Online Players: 58"


Thanks for sharing liked this idea: D
 
Newbie Spellweaver
Joined
Mar 7, 2017
Messages
36
Reaction score
13
/*ALTER PROCEDURE [dbo].[WEB_PlayersOnline]*/
CREATE PROCEDURE [dbo].[WEB_PlayersOnline]

as
BEGIN
SELECT uc.LastUpdateDate, uc.Gamertag, uc.CustomerID, ud.CustomerID, ud.IsDeveloper, ud.AccountType From UsersChars as uc
JOIN UsersData as ud ON
uc.CustomerID = ud.CustomerID
WHERE DATEDIFF(MINUTE, uc.LastUpdateDate, GETDATE()) <= 15
END
 
Back
Top