auto kill afk player out of area
This commit is contained in:
parent
9aab082d92
commit
6afea53a89
@ -962,6 +962,13 @@ function BattleRoyale_GameUpdate( lobbyid )
|
||||
|
||||
// hurt players outside the zone
|
||||
if ( IsPlayerSpawned( x ) && ! IsPlayerInArea( x, br_lobbyData[ lobbyid ] [ E_B_MIN_X ], br_lobbyData[ lobbyid ] [ E_B_MAX_X ], br_lobbyData[ lobbyid ] [ E_B_MIN_Y ], br_lobbyData[ lobbyid ] [ E_B_MAX_Y ] ) )
|
||||
{
|
||||
// force kill afk player out of zone
|
||||
if ( IsPlayerAFK( x ) )
|
||||
{
|
||||
SetPlayerHealth( x, -1 );
|
||||
}
|
||||
else
|
||||
{
|
||||
new
|
||||
Float: health;
|
||||
@ -972,6 +979,7 @@ function BattleRoyale_GameUpdate( lobbyid )
|
||||
SetPlayerHealth( x, health - 10.0 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// prevent zone shrinking and bombing while the plane is rotating
|
||||
if ( br_lobbyData[ lobbyid ] [ E_PLANE ] != -1 && br_lobbyData[ lobbyid ] [ E_PLANE_ROTATION ] <= 180.0 )
|
||||
|
Loading…
Reference in New Issue
Block a user