[JavaScript & AMXX] Live Scoreboard
4 Attachment(s)
What does the plugin do?
• Inside the server, nothing really. • Install the plugin and enter the following link: https://lukks.github.io/live-scoreboard/?ip:port * replace the ip and port. https://vgy.me/fXcnGa.gif • You can install the files on your website (without database or anything, just upload the files). • It also shows when it is Vip, Dead or has C4. • In addition, it works locally: https://vgy.me/mgYU8u.jpg Requirements: * Sockets Async by Destro * Port open: 65535 - server port. For example, for 127.0.0.1:27015 -> 38520. Thank you: @Destro for your module to handle sockets and cryptography stock. @Milashkasiya I saw your Half-Life Main Page Simulator and then it occurred to me to replicate the scoreboard. @Pan-Bimbo you helped me with a question with the end of line that was not working. Ideas: + I plan to add in the top left, for example, "220fps 3/12 de_dust2". + Make the ping have a +-3 so that it does not update as many times (anyway is optimal because it's updated per player). ? It would have been perfect with ReactJS (it reduces some cpu to the browser) but I wanted everyone to be able to handle the files well. Note: • You can't use the cryptography stock of Destro, it has to be the one attached here. • GitHub: https://github.com/LuKks/live-scoreboard Last changes: • Replica of the say on web: now you can write bidirectionally. Idea from @levinx • Fixed who is c4. Report of @pallaroid • Small optimizations. Spanish version: https://amxmodx-es.com/Thread-JavaSc...ive-Scoreboard |
Re: [JavaScript & AMXX] Live Scoreboard
Dosen't work for me
I installed the module and plugin and nothing, there must be any port open? |
Re: [JavaScript & AMXX] Live Scoreboard
amazing..its also having chat there :O
can you give any IP to see it live as example? |
Re: [JavaScript & AMXX] Live Scoreboard
Quote:
Quote:
|
Re: [JavaScript & AMXX] Live Scoreboard
GOOD JOB :)
|
Re: [JavaScript & AMXX] Live Scoreboard
Great, I wonder how long did it take you to code it ?
|
Re: [JavaScript & AMXX] Live Scoreboard
Quote:
Short answer: About 2-3 days because are two versions so they was different days. The difficult part was make the helper functions for websocket connection (socket_handshake, socket_mask and socket_unmask) because the module Sockets Async don't handle websockets directly so you have to do it yourself (now you can use my functions). In the second version (actually this last one) I make the say replication then I need send from browser to server too, so I made socket_unmask but also I find one bug with socket_mask sending large data and some pending optimizations, everything solved. * socket_handshake is for establish the initial connection. The frontend design is not complex, you can see the .css with few lines. The JavaScript part was not difficult because it's my main language. Note: don't expect that the code be perfect (except the helper functions), it's just a informal plugin. Pawn/AMXX was my first language for several years, so.. |
Re: [JavaScript & AMXX] Live Scoreboard
PHP Code:
PHP Code:
|
Re: [JavaScript & AMXX] Live Scoreboard
The run time error was because if the socket not bind then the array is not created, so in plugin_end makes error. I updated the source with the fix, I just moved the array creation.
And "failed to bind" because you don't have the port opened. Check the requeriments. Thank you for the report :) |
Re: [JavaScript & AMXX] Live Scoreboard
Quote:
I will apply the fix and update you. I had the previous version where you had it posted on the es forums. It worked fine there. Weird now the port is not open. Edit: Updated the plugin. Still does not work. The ports and everything are all open |
| All times are GMT -4. The time now is 09:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.