Jump to content
Sign in to follow this  
Naiss

C# getting player info from server?

Recommended Posts

Hello,

 

I'm messing around in C# and I'm trying to get some info from ArmA 3 server like the number of players on the server, player list, etc.

 

any idea how I would do this, any example code?

 

Some sort of rcon like kick and ban with some player info

Share this post


Link to post
Share on other sites

For kicking and banning you need to write an extension like tezz said.

If you only want to have a playerlist, the current map, etc. you can use the steam server queries

Share this post


Link to post
Share on other sites

You can get the most basic info, like which players are on, current mission, etc, but probably not their game/steam/battleye ids using ordinary steam query.

 

For more, especially if you want to manipulate the server, you might want to look into BattleEye and their RCon, but this not trivial to implement. This might get your started: https://community.bistudio.com/wiki/BattlEye#RCon

The protocol and download for an RCon client is here https://www.battleye.com/downloads/ . You might want to just find an existing RCon client and see how to integrate with that or get it to do what you want.

 

Of course, there is tezz' suggestion to write an extension—which would probably be simpler than implementing the protocol above—but if a few server hosts may not allow adding custom DLLs.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×