Universal Player list to webpage

Discussion in 'Plugin Requests' started by BegoRedSmith, Aug 7, 2015.

  1. I'm looking for a plugin which can get me by API, an online player list on my homepage.

    I know that it was something of Toprustservers but that no longer works.

    Many thanks in advance.
     
  2. I want this too.
     
  3. I have found this, but it was probably for Oxmin among oxides 1.18.

    Code:
    PLUGIN.Title = "PlayersWebService"
    PLUGIN.Description = "Publishes player list to a website"
    PLUGIN.Author = "NONE"
    PLUGIN.Version = "0.0.0"
    local alternate = true
    function PLUGIN:Init()
        oxmin_mod = cs.findplugin("oxmin")
        oxmin_mod:AddExternalOxminChatCommand(self, "online", {}, cmdList)
    end
    function cmdList()
        local pclist = rust.GetAllNetUsers()
       
        local count = 0
        local names = ""
        for key,value in pairs(pclist) do
            count = count + 1
        end
        for i=1, count do
            names = names .. "," .. util.QuoteSafe(pclist[i].displayName)
        end
        webrequest.Send("http://toprustservers.com/api/put?plugin=playerlist&key=20522b0185539d8c1b81f9207060ce24&list=" .. names, function(code, content) if(code == 200) then print(content) end end)
    end
    function PLUGIN:OnUserDisconnect()   
        timer.Once(3,cmdList);
    end
    function PLUGIN:OnUserConnect()   
        cmdList();
    end
     
  4. Yes, I found this off of git hub, along with the web portion too.

    Please quote your sources.
     
  5. I may be starting to work with Web Requests a bit.
     
  6. Omg please do
     
  7. Hello, do not tell me how to display the number of players on your website? Where else could've already finished php scripts?
    [DOUBLEPOST=1456044027,1455809919][/DOUBLEPOST]UP! Hellp me!
     
  8. I can help. In PM.
     
  9. CodLite is good :)
     
  10. Well currently (after a year) I'm a professional coder... JK ofc XD
    At that time I didn't know anything about C# so its not needed anymore.
     
  11. Is there any of you guys working on this? If not I may try to do this.