Scripting help needed
Hello guys,
I am new here and i am going to design my first plugin,it will not be public,it will be for my own clan. I want to make a plugin which will work like high ping kicker.Of course it will not do what the high ping kicker does.I just want to open an http connection after a specific interval of time and once when the server will start and will shut down. Is there any function i can use to open a http connection? Are there any libs for that?Please suggest so and also guide me about calling a function when a server is started and stopped. |
Re: Scripting help needed
You can use the sockets module for the http request and display data in a MOTD window.
|
Re: Scripting help needed
Quote:
Thats what i am trying to do I don't think that MOTD window will be helpful for this. |
Re: Scripting help needed
Ok, then:
You can use the sockets module for the http request |
Re: Scripting help needed
Quote:
|
Re: Scripting help needed
What does the http request look like, I will put it together for you.
Code:
GET /what_does_this_need_to_be HTTP/1.1 |
Re: Scripting help needed
firstly, thanks for your support.
I want to know how can i get the server name, players on server and map which is running on server through variables. i am searching madly for this thing,but i can't get it anywhere.please help me. |
Re: Scripting help needed
I don't know what you mean by get players but I assume get a list of player names?
Use "/info" in chat to show info. PHP Code:
|
Re: Scripting help needed
thanks for your help
but i also want to know number of player and total slots. thanks for the above code,but can u help me in putting all the info in different variables? |
Re: Scripting help needed
Edited above code to show number of players along with slots. Everything is in variables, what do you mean?
Code:
Server name: test server 1.1 |
| All times are GMT -4. The time now is 18:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.