up too date with mw2

This commit is contained in:
INeedBots 2020-09-25 03:57:45 -06:00
parent a1ae78401e
commit ceb65bbc22
2 changed files with 22 additions and 22 deletions

View File

@ -109,28 +109,7 @@ init()
level thread onPlayerConnect(); level thread onPlayerConnect();
level thread handleBots(); level thread handleBots();
level thread doVersionCheck(); level thread maps\mp\bots\_bot_http::doVersionCheck();
}
doVersionCheck()
{
remoteVersion = maps\mp\bots\_bot_http::getRemoteVersion();
if (!isDefined(remoteVersion))
{
println("Error getting remote version of Bot Warfare.");
return false;
}
if (level.bw_VERSION != remoteVersion)
{
println("There is a new version of Bot Warfare!");
println("You are on version " + level.bw_VERSION + " but " + remoteVersion + " is available!");
return false;
}
println("You are on the latest version of Bot Warfare!");
return true;
} }
/* /*

View File

@ -7,3 +7,24 @@ getRemoteVersion()
{ {
println("VERSION"); println("VERSION");
} }
doVersionCheck()
{
remoteVersion = getRemoteVersion();
if (!isDefined(remoteVersion))
{
println("Error getting remote version of Bot Warfare.");
return false;
}
if (level.bw_VERSION != remoteVersion)
{
println("There is a new version of Bot Warfare!");
println("You are on version " + level.bw_VERSION + " but " + remoteVersion + " is available!");
return false;
}
println("You are on the latest version of Bot Warfare!");
return true;
}