re-arranging when to connect to ze2
This commit is contained in:
		
							parent
							
								
									f5d8b6d584
								
							
						
					
					
						commit
						6b7b78f9f5
					
				| @ -525,7 +525,7 @@ public Action bot_check_connect(Handle timer, any data) | |||||||
|             send_socket_msg(msg, strlen(msg), ports[2]); |             send_socket_msg(msg, strlen(msg), ports[2]); | ||||||
|             send_socket_msg(msg, strlen(msg), ports[3]); |             send_socket_msg(msg, strlen(msg), ports[3]); | ||||||
|         } |         } | ||||||
|         else if (client_count < max_allowed_players) |         else if (client_count < max_allowed_players - 5) | ||||||
|         { |         { | ||||||
|             Format(msg, sizeof(msg), "connect to ze"); |             Format(msg, sizeof(msg), "connect to ze"); | ||||||
|             if (!bot1_connected) |             if (!bot1_connected) | ||||||
| @ -537,6 +537,14 @@ public Action bot_check_connect(Handle timer, any data) | |||||||
|             if (!bot4_connected) |             if (!bot4_connected) | ||||||
|                 send_socket_msg(msg, strlen(msg), ports[3]); |                 send_socket_msg(msg, strlen(msg), ports[3]); | ||||||
|         } |         } | ||||||
|  |         else | ||||||
|  |         { | ||||||
|  |             Format(msg, sizeof(msg), "connect to ze2"); | ||||||
|  |             send_socket_msg(msg, strlen(msg), ports[0]); | ||||||
|  |             send_socket_msg(msg, strlen(msg), ports[1]); | ||||||
|  |             send_socket_msg(msg, strlen(msg), ports[2]); | ||||||
|  |             send_socket_msg(msg, strlen(msg), ports[3]); | ||||||
|  |         } | ||||||
|     } |     } | ||||||
|     else |     else | ||||||
|     { |     { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user