Is it impossible to send Elgbot stats with json code to website using http request or something like that.
Is it impossible to send Elgbot stats with json code to website using http request or something like that.
It's possible with NightFall but it's not fully compatible with Mohaa yet. You gotta wait.
There's another way, elgbot saves stats in ini files so you can write a script in any language that parses those files and sends them via http/json.
Discord: RyBack#4239
fb: https://www.facebook.com/mohabhassan312
iam trying to calculate stats per rounds in every map with elgbot its so hard really.
elgbot increments stats for current player everytime but not per round + no verification for player name everyone can use same player name and calculate stats without any problem.
Last edited by Octa o; April 13th, 2020 at 10:18 PM.
You can't verify a player are who you think they are in a Mohaa server, that's beyond elgbot job. Some mods implement in game login like base assault.
You can check for file changes instead of intervals.
If your statistics must be round based, you're going to do a lot of work either by a) modifying elgbot to store stats round based.
b) create a mod that logs the stats in a round based manner.
c)create a mod that lets your api know when each round is over (via a rcon cvar or a file). Then you check that cvar or file, once it's clear that a round is over you parse elgbot stats and the difference each time is what everyone did in the past round.
Discord: RyBack#4239
fb: https://www.facebook.com/mohabhassan312
The thing you can do at the moment is creating something on the website to pull the stats from the server using the rcon like Ryback have say or to pull the stats files and parse them to store the stats.
i can get stats files from server to website but how with rcon any example ?
Last edited by Octa o; April 15th, 2020 at 11:59 AM.
another thing how to get map name in script?
Hi Octa,
Don't take this in a bad way, but It's weird that your first question was about advanced stuff like calculating players stats per round and sending it from the server to a website,
but then you ask how to get a map name in a script, which is one of the most basic things you can do.
It gives the impression that you want others to make the whole script for you, and that will scare people away from helping you
I recommend you to do things step by step before trying to do more complex stuff.
Read all the existing documentation (you can see some links on my signature)
Download some mods, analyze and play with them until you understand what each line of code does in the script
After that you will be able to write your own scripts and ask questions appropriately about what you want to do.
Cheers