[Release] Simple players online page

Results 1 to 11 of 11
  1. #1

    [Release] Simple players online page



    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 : https://mega.co.nz/#!SIRTFTSb!-YiZUc...iz2BH9UMRO7vnU


  2. #2
    Rival Gamers Owner own_prox is offline
    MemberRank
    Jul 2007 Join Date
    HellLocation
    1,077Posts

    Re: [Release] Simple players online page

    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

  3. #3
    Titan Guard Dev iTzTonyR703 is offline
    MemberRank
    Apr 2013 Join Date
    US, STL.Location
    296Posts

    Re: [Release] Simple players online page

    Credit zonfire

  4. #4
    Apprentice Joe Cooper is offline
    MemberRank
    Jan 2015 Join Date
    8Posts

    Re: [Release] Simple players online page

    Quote Originally Posted by own_prox View Post
    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!

  5. #5
    Member Rigor Mortis is offline
    MemberRank
    Jan 2015 Join Date
    ?Location
    89Posts

    Re: [Release] Simple players online page

    Quote Originally Posted by iTzTonyR703xD View Post
    Credit zonfire
    Actually it was originally implemented into some of the unknowN's code by Zon ...... So credit to both of them.

  6. #6
    Titan Guard Dev iTzTonyR703 is offline
    MemberRank
    Apr 2013 Join Date
    US, STL.Location
    296Posts

    Re: [Release] Simple players online page

    Quote Originally Posted by Rigor Mortis View Post
    Actually it was originally implemented into some of the unknowN's code by Zon ...... So credit to both of them.
    which unknown we talking about here

  7. #7
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [Release] Simple players online page

    if only to show the online numbers would colocari there?

    Thanks again for your sharing =)

  8. #8
    Member Rigor Mortis is offline
    MemberRank
    Jan 2015 Join Date
    ?Location
    89Posts

    Re: [Release] Simple players online page

    Quote Originally Posted by iTzTonyR703xD View Post
    which unknown we talking about here
    Does it really matter Tony.....They know who they are. Lay off of my threads.

  9. #9
    Apprentice GdZ is offline
    MemberRank
    Jan 2015 Join Date
    9Posts

    Re: [Release] Simple players online page

    have sript for Number players online ?
    Exemple: Survivors Online: 13
    please.

  10. #10
    Valued Member Doky is offline
    MemberRank
    Oct 2014 Join Date
    BrazilLocation
    127Posts

    Re: [Release] Simple players online page

    would have something to change there?
    wanted it to be by numbers
    "Online Players: 58"


    Thanks for sharing liked this idea: D

  11. #11
    Enthusiast Naoki Seiichi is offline
    MemberRank
    Mar 2017 Join Date
    36Posts

    Re: [Release] Simple players online page

    /*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



Advertisement