PLAYERS = [yegiks[1], yegiks[2]]
BALL = yegiks[3]

PLAYER_BOT = bots[2]
BALL_BOT = bots[3]

NET = points[1]
WAYPOINT = points[2]

PLAYER_SPAWNS = [1, 4]
BALL_SPAWNS = [2, 3]

PUNCH_FORCE = -15

if timers[1].value == 1:
    player_touches = [0, 0]

    system.bots = 2
    PLAYERS[0].spawn(PLAYER_SPAWNS[0])
    PLAYERS[1].spawn(PLAYER_SPAWNS[1])
    PLAYER_BOT.ai = False
    PLAYER_BOT.goto = WAYPOINT

    BALL.spawn(BALL_SPAWNS[0])
    BALL_BOT.ai = 0
    ball_speed_x = BALL.speed_x = BALL.speed_y = 0

# Ball movement
BALL.health = 100
BALL.speed_y *= 0.88

if BALL.speed_x != 0 and BALL.speed_y != 0:
    ball_speed_x = BALL.speed_x

if ball_speed_x != 0 and BALL.speed_x == 0 and BALL.speed_y != 0:
    ball_speed_x *= -0.8
    BALL.speed_x = ball_speed_x

# Calculate punches
# for player_num, player in enumerate(PLAYERS):
player_num = 0
for player in PLAYERS:
    # if player_touches[player_num] >= 4:
    #     continue
    if player_touches[player_num] < 4:
        if (player.pos_y - 20 < BALL.pos_y < NET.pos_y and
                player.pos_x - 20 < BALL.pos_x < player.pos_x + 20):
            player_touches[player_num] += 1
            player_touches[1-player_num] = 0
            player_ball_distance_x = BALL.pos_x - player.pos_x

            if player_ball_distance_x > 0:
                BALL.speed_x = 10

            if player_ball_distance_x < 0:
                BALL.speed_x = -10

            BALL.speed_y = PUNCH_FORCE
        player_num += 1

# Check touches
if player_touches[0] == 3 or player_touches[1] == 3:
    system.message_at(282, 100, 50, '3 касания!')

# Player scores
player_num_scores = -1
if BALL.pos_y > NET.pos_y and BALL.pos_x > NET.pos_x:
    player_num_scores = 0
elif BALL.pos_y > NET.pos_y and BALL.pos_x < NET.pos_x:
    player_num_scores = 1

if player_num_scores > -1:
    timers[1].value = 5

    PLAYERS[player_num].frags += 1

    BALL.spawn(BALL_SPAWNS[player_num])
    ball_speed_x = BALL.speed_x = BALL.speed_y = 0

    # player_touches = [0, 0]
    player_touches[0] = player_touches[1] = 0

# Bot intelligence
WAYPOINT.pos_y = 425
WAYPOINT.pos_x = BALL.pos_x
PLAYER_BOT.goto = WAYPOINT

@@ -174,21 +174,48 @@
 %0A%0APUNCH_
-FORCE
+VELOCITY_X = 10%0APUNCH_VELOCITY_Y
  = -15%0A%0A
@@ -893,18 +893,16 @@
 ERS:%0A   
- #
  if play
@@ -931,16 +931,14 @@
  %3E= 
-4
+3
 :%0A   
- #
     
@@ -951,51 +951,8 @@
 nue%0A
-    if player_touches%5Bplayer_num%5D %3C 4:%0A    
     
@@ -1010,28 +1010,24 @@
             
-  
-  
 player.pos_x
@@ -1067,36 +1067,32 @@
  + 20):%0A        
-    
 player_touches%5Bp
@@ -1111,28 +1111,24 @@
 = 1%0A        
- 
-   
 player_touch
@@ -1148,20 +1148,16 @@
 um%5D = 0%0A
-    
         
@@ -1220,82 +1220,40 @@
     
-    if player_ball_distance_x %3E 0:%0A                BALL.speed_x = 10%0A%0A    
+BALL.speed_x = PUNCH_VELOCITY_X%0A
     
@@ -1291,36 +1291,32 @@
  0:%0A            
-    
 BALL.speed_x = -
@@ -1316,19 +1316,15 @@
 d_x 
+*
 = -1
-0
 %0A%0A
-    
     
@@ -1352,18 +1352,19 @@
 NCH_
-FORCE%0A    
+VELOCITY_Y%0A
     
@@ -1445,24 +1445,47 @@
 es%5B1%5D == 3:%0A
+    system.color = 188%0A
     system.m
@@ -1515,18 +1515,46 @@
  '3 
-%D0%BA%D0%B0%D1%81%D0%B0%D0%BD%D0%B8%D1%8F!')
+kasaniya!')%0A    system.color = 200*256
 %0A%0A# 
@@ -1784,33 +1784,8 @@
 -1:%0A
-    timers%5B1%5D.value = 5%0A%0A
     
@@ -1802,16 +1802,23 @@
 ayer_num
+_scores
 %5D.frags 
@@ -1860,16 +1860,23 @@
 ayer_num
+_scores
 %5D)%0A    b

Make use of 'continue'