• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[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