Gamemode not working on Server Map

"Right before incrementing the variable do a branch and check if Max Number Of Connected Players is >= to your number. " Thant’s where I am confused. I want to know how can I pass this value from the client’s menu to the server gamemode. I am really frustrated at this point and any idea will be really helpful bro.