Now when this is done, look SafeWritingMain.lua from SafeWriting.pak for further implementation of protocol, you basically need to register server and later update it inside network.
To find given code, simply search for "reg.php" and "up.php"
So far you register your server at CryMP by connecting to http://crymp.net/api/reg.php and provide details in GET or POST params, it doesn't matter, (GET params are those inside URL, like thread.php?id=123... so GET param "id" equals "123" now), after successfuly registered, you should retrieve token, which will later be used to update your server in the list.
For example
--mapPath should look like this: multiplayer/ps/mesa
function register_server(port, name, numPlayers, maxPlayers, mapPath, mapDownloadLink, timeLeft)
mapDownloadLink=mapDownloadLink or "" -- http link to map download
timeLeft=timeLeft or 0 --remaining round time in seconds
local result = http_request("http://crymp.net/api/reg.php?ver=6156&port="..urlencode(port).."&name="..urlencode(name).."&numpl="..numPlayers.."&maxPl="..maxPlayers.."&map="..urlencode(mapPath) ... and so on...)
local token=string.match(result,"<<Cookie>>([a-z0-9]-)<<")
return token
end
Updating server is similar to this, only you need to pass token as "&cookie=" inside URL to /api/up.php❤️ 0