CheckNoobProtec in transport mission

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • CheckNoobProtec in transport mission

    Atendiendo una petición de @Desconocido
    En alguna parte de ShowFleetStep3Page.class.php añade

    Source Code

    1. if ($targetMission == 3)
    2. {
    3. $sql = 'SELECT total_points
    4. FROM %%STATPOINTS%%
    5. WHERE id_owner = :userId AND stat_type = :statType';
    6. $USER += Database::get()->selectSingle($sql, array(
    7. ':userId' => $USER['id'],
    8. ':statType' => 1
    9. ));
    10. $IsNoobProtec = CheckNoobProtec($USER, $targetPlayerData, $targetPlayerData);
    11. if ($IsNoobProtec['NoobPlayer'])
    12. {
    13. $this->printMessage($LNG['fl_player_is_noob_transp'], array(array(
    14. 'label' => $LNG['sys_back'],
    15. 'url' => 'game.php?page=fleetTable'
    16. )));
    17. }
    18. if ($IsNoobProtec['StrongPlayer']) {
    19. $this->printMessage($LNG['fl_player_is_strong_transp'], array(array(
    20. 'label' => $LNG['sys_back'],
    21. 'url' => 'game.php?page=fleetTable'
    22. )));
    23. }
    24. }
    Display All
    Ya con eso debería darte el resultado que buscas :thumbsup: :thumbsup: :thumbsup:
    VERY SAD :/ :/ :/ :/
  • yamilrh wrote:

    Atendiendo una petición de @Desconocido
    En alguna parte de ShowFleetStep3Page.class.php añade

    Source Code

    1. if ($targetMission == 3)
    2. {
    3. $sql = 'SELECT total_points
    4. FROM %%STATPOINTS%%
    5. WHERE id_owner = :userId AND stat_type = :statType';
    6. $USER += Database::get()->selectSingle($sql, array(
    7. ':userId' => $USER['id'],
    8. ':statType' => 1
    9. ));
    10. $IsNoobProtec = CheckNoobProtec($USER, $targetPlayerData, $targetPlayerData);
    11. if ($IsNoobProtec['NoobPlayer'])
    12. {
    13. $this->printMessage($LNG['fl_player_is_noob_transp'], array(array(
    14. 'label' => $LNG['sys_back'],
    15. 'url' => 'game.php?page=fleetTable'
    16. )));
    17. }
    18. if ($IsNoobProtec['StrongPlayer']) {
    19. $this->printMessage($LNG['fl_player_is_strong_transp'], array(array(
    20. 'label' => $LNG['sys_back'],
    21. 'url' => 'game.php?page=fleetTable'
    22. )));
    23. }
    24. }
    Display All
    Ya con eso debería darte el resultado que buscas :thumbsup: :thumbsup: :thumbsup:
    muchas gracias eso era lo que necesitaba probado y listo :thumbsup: :thumbsup: :thumbsup: :thumbsup: :thumbsup: :thumbsup: :thumbsup: :thumbsup: