eberajiejbea

This commit is contained in:
Mario 2023-03-01 23:50:02 +02:00 committed by GitHub
parent 623b191366
commit e3c9033ecf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 14 deletions

View File

@ -176,23 +176,23 @@ function generateRandomString($length = 25) {
--settings().Network.SendRate = 35
--settings().Network.PhysicsSend = 0 -- 1==RoundRobin
game:GetService("Players").PlayerAdded:connect(function(player)
// if game.Players.NumPlayers ~= 0 then
// print(game:HttpGet("'. $https . $soapcfg['url'] . '/api/UpdatePlayerCount?accesstoken=" .. accesstoken .. "&playercount=" .. game.Players.NumPlayers))
// print("Successfully Updated Player count for JobID: " . "' . $jobid . '")
// else
// print(game:HttpGet("'. $https . $soapcfg['url'] . '/api/CloseJob?accesstoken=" .. accesstoken))
// print("Job ID: " .. "' . $jobid . '" .. " is closing due to no active players.")
// end
if game.Players.NumPlayers ~= 0 then
print(game:HttpGet(url .. "/api/UpdatePlayerCount?accesstoken=" .. accesstoken .. "&playercount=" .. game.Players.NumPlayers))
print("Successfully Updated Player count for JobID: " . "' . $jobid . '")
else
print(loadfile(url .. "/api/CloseJob?accesstoken=" .. accesstoken))
print("Job ID: " .. "' . $jobid . '" .. " is closing due to no active players.")
end
print("Player " .. player.userId .. " added")
end)
game:GetService("Players").PlayerRemoving:connect(function(player)
// if game.Players.NumPlayers ~= 0 then
// print(game:HttpGet("'. $https . $soapcfg['url'] . '/api/UpdatePlayerCount?accesstoken=" .. accesstoken .. "&playercount=" .. game.Players.NumPlayers))
// print("Successfully Updated Player count for JobID: " . "' . $jobid . '")
// else
// print(game:HttpGet("'. $https . $soapcfg['url'] . '/api/CloseJob?accesstoken=" .. accesstoken))
// print("Job ID: " .. "' . $jobid . '" .. " is closing due to no active players.")
// end
if game.Players.NumPlayers ~= 0 then
print(loadfile(url .. "/api/UpdatePlayerCount?accesstoken=" .. accesstoken .. "&playercount=" .. game.Players.NumPlayers))
print("Successfully Updated Player count for JobID: " . "' . $jobid . '")
else
print(loadfile(url .. "/api/CloseJob?accesstoken=" .. accesstoken))
print("Job ID: " .. "' . $jobid . '" .. " is closing due to no active players.")
end
print("Player " .. player.userId .. " leaving")
end)
if placeId~=nil and url~=nil then