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.
Universal Player list to webpage
Discussion in 'Plugin Requests' started by BegoRedSmith, Aug 7, 2015.
-
I want this too.
-
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
-
Yes, I found this off of git hub, along with the web portion too.
Please quote your sources. -
I may be starting to work with Web Requests a bit.
-
Omg please do
-
This is literally a 2 minute job with web requests, here's a little tut I posted a while ago that shows how to use web requests and php a lil bit http://oxidemod.org/threads/tutorial-execute-actions-from-webrequest-lua-php.10209/
-
Do you know/have any good ?
-
guys could hack at this: http://oxidemod.org/plugins/stats.1188/
-
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! -
I can help. In PM.
-
-
At that time I didn't know anything about C# so its not needed anymore. -
Is there any of you guys working on this? If not I may try to do this.