The noobprotection don't work in 2moons 2.0.
The players witch millions of points can attack others players witch 1 point.
La proteccion a novatos y la proteccion a jugadores no funciona. Jugadores con millones de puntos pueden atacar a otros con solo 1 punto.
Display All
The players witch millions of points can attack others players witch 1 point.
La proteccion a novatos y la proteccion a jugadores no funciona. Jugadores con millones de puntos pueden atacar a otros con solo 1 punto.
PHP Source Code: GeneralFunctions.php
- function CheckNoobProtec($OwnerPlayer, $TargetPlayer, $Player)
- {
- $config = Config::get();
- if(
- $config->noobprotection == 0
- || $config->noobprotectiontime == 0
- || $config->noobprotectionmulti == 0
- || $Player['banaday'] > TIMESTAMP
- || $Player['onlinetime'] < TIMESTAMP - INACTIVE
- ) {
- return array('NoobPlayer' => false, 'StrongPlayer' => false);
- }
- return array(
- 'NoobPlayer' => (
- /* WAHR:
- Wenn Spieler mehr als 25000 Punkte hat UND
- Wenn ZielSpieler weniger als 80% der Punkte des Spieler hat.
- ODER weniger als 5.000 hat.
- VERDADERO:
- Si el jugador tiene más de 25000 puntos Y
- Si el jugador objetivo tiene menos del 80% de la puntuación del jugador.
- O tiene menos de 5,000.
- */
- // Addional Comment: Esto último no tiene sentido, por favor prueba.
- ($TargetPlayer['total_points'] <= $config->noobprotectiontime) && // Default: 25.000
- ($OwnerPlayer['total_points'] > $TargetPlayer['total_points'] * $config->noobprotectionmulti)
- ),
- 'StrongPlayer' => (
- /* WAHR:
- Wenn Spieler weniger als 5000 Punkte hat UND
- Mehr als das funfache der eigende Punkte hat
- VERDADERO:
- Si el jugador tiene menos de 5000 puntos Y
- Más de cinco veces el número de puntos.
- */
- ($OwnerPlayer['total_points'] < $config->noobprotectiontime) && // Default: 5.000
- ($OwnerPlayer['total_points'] * $config->noobprotectionmulti < $TargetPlayer['total_points'])
- ),
- );
- }