mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-01 23:35:41 +00:00
xxx
This commit is contained in:
parent
29e77b147c
commit
7410625fce
@ -2,7 +2,7 @@
|
||||
/// Created by Anonymous275 on 4/10/2020
|
||||
///
|
||||
extern std::string MapName;
|
||||
extern std::string Private;
|
||||
extern bool Private;
|
||||
extern int MaxPlayers;
|
||||
extern int UDPPort;
|
||||
extern int TCPPort;
|
||||
|
@ -21,7 +21,7 @@ void Heartbeat()
|
||||
while(true)
|
||||
{
|
||||
PostHTTP("https://beamng-mp.com/heartbeat","uuid="+UUID+"&players="+to_string(PlayerCount)+"&maxplayers="+to_string(MaxPlayers)+"&port="
|
||||
+ to_string(UDPPort) + "&map=" + MapName + "&private="+Private+"&serverversion="+ServerVersion+"&clientversion="+ClientVersion+"&name="+ServerName);
|
||||
+ to_string(UDPPort) + "&map=" + MapName + "&private="+to_string(Private)+"&serverversion="+ServerVersion+"&clientversion="+ClientVersion+"&name="+ServerName);
|
||||
|
||||
std::this_thread::sleep_for (std::chrono::seconds(5));
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ void addToLog(basic_string<char> Data);
|
||||
void HeartbeatInit();
|
||||
|
||||
string MapName = "levels/gridmap/level.json";
|
||||
string Private = "false";
|
||||
bool Private = false;
|
||||
int MaxPlayers = 10;
|
||||
int UDPPort = 30814;
|
||||
int TCPPort = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user