1. Dashboard
  2. Forum
    1. Unerledigte Themen
  3. Downloads
  4. Galerie
    1. Alben
  5. Toolbox
    1. Passwort Generator
    2. Portchecker
  6. Mitglieder
    1. Mitgliedersuche
    2. Benutzer online
    3. Trophäen
    4. Team
Mi: 21 Mai 2025
  • Anmelden oder registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Forum
  • Dateien
  • Seiten
  • Bilder
  • Erweiterte Suche

Schön, dass du den Weg zu NodeZone.net gefunden hast! Aktuell bist du nicht angemeldet und kannst deshalb nur eingeschränkt auf unsere Community zugreifen. Um alle Funktionen freizuschalten, spannende Inhalte zu entdecken und dich aktiv einzubringen, registriere dich jetzt kostenlos oder melde dich mit deinem Account an.

Anmelden oder registrieren
    1. Nodezone.net Community
    2. Forum
    3. Gameserver & Hosting
    4. ArmA Series - ArmA 3 / Reforger
    5. Tutorials & Releases

    Simple whitelist (only allowed players to enter the game)

      • Altis Life
    • apple123
    • 25. März 2020 um 17:31
    • apple123
      Anfänger
      Reaktionen
      4
      Trophäen
      6
      Beiträge
      65
      • 25. März 2020 um 17:31
      • #1

      Difficulty: Very simple

      Suitable for beginner

      fn_requestReceived.sqf

      find

      !isServer && (!isNil "life_adminlevel" || !isNil "life_coplevel" || !isNil "life_donorlevel")

      change it to

      !isServer && (!isNil "life_adminlevel" || !isNil "life_coplevel" || !isNil "life_donorlevel"|| !isNil "life_whitelist")

      then find

      CONST(life_coplevel,(_this select 7));

      Add code below it

      CONST(life_whitelist,(_this select 12));

      then find

      life_is_arrested = _this select 7;

      Add code below it

      CONST(life_whitelist,(_this select 13));

      then find

      CONST(life_medicLevel,(_this select 7));

      Add code below it

      CONST(life_whitelist,(_this select 11));

      then to

      fn_initciv.sqf

      add it:

      if((call life_whitelist) < 1) then {["NotWhitelistplayer",false,false] call BIS_fnc_endMission;};

      then to

      description.ext

      find

      class NotWhitelisted { title = "$STR_NotWhitelisted_Title"; subtitle = "$STR_NotWhitelisted_SubTitle"; description = "$STR_NotWhitelisted_Descript"; pictureBackground = ""; picture = ""; pictureColor[] = {0,0.3,0.6,1}; };

      Add code below it

      class NotWhitelistplayer { title = "You are not a whitelist player applied by the server, please contact the administrator"; subtitle = "You are not a whitelist player applied by the server, please contact the administrator"; description = "You are not a whitelist player applied by the server, please contact the administrator"; pictureBackground = ""; picture = ""; pictureColor[] = {0,0.3,0.6,1}; };

      then go to the life_server:

      find fn_queryRequest.sqf

      change it

      Code
      _query = switch (_side) do {
          // West - 11 entries returned
          case west: {format ["SELECT pid, name, cash, bankacc, adminlevel, donorlevel, cop_licenses, coplevel, cop_gear, blacklist, cop_stats, playtime FROM players WHERE pid='%1'",_uid];};
          // Civilian - 12 entries returned
          case civilian: {format ["SELECT pid, name, cash, bankacc, adminlevel, donorlevel, civ_licenses, arrested, civ_gear, civ_stats, civ_alive, civ_position, playtime FROM players WHERE pid='%1'",_uid];};
          // Independent - 10 entries returned
          case independent: {format ["SELECT pid, name, cash, bankacc, adminlevel, donorlevel, med_licenses, mediclevel, med_gear, med_stats, playtime FROM players WHERE pid='%1'",_uid];};
      };

      to

      Code
      _query = switch (_side) do {
          // West - 11 entries returned
          case west: {format ["SELECT pid, name, cash, bankacc, adminlevel, donorlevel, cop_licenses, coplevel, cop_gear, blacklist, cop_stats, playtime, whitelist FROM players WHERE pid='%1'",_uid];};
          // Civilian - 12 entries returned
          case civilian: {format ["SELECT pid, name, cash, bankacc, adminlevel, donorlevel, civ_licenses, arrested, civ_gear, civ_stats, civ_alive, civ_position, playtime, whitelist FROM players WHERE pid='%1'",_uid];};
          // Independent - 10 entries returned
          case independent: {format ["SELECT pid, name, cash, bankacc, adminlevel, donorlevel, med_licenses, mediclevel, med_gear, med_stats, playtime, whitelist FROM players WHERE pid='%1'",_uid];};
      };

      at last you should add this to sql -> players

      `whitelist` ENUM('0','1') NOT NULL DEFAULT '0',

      If you change the value of whitelist to 1, players can enter, otherwise they cannot enter, that's it! :)

      Einmal editiert, zuletzt von apple123 (26. März 2020 um 16:06)

    • flippa
      Fortgeschrittener
      Reaktionen
      30
      Trophäen
      8
      Beiträge
      319
      • 26. März 2020 um 14:47
      • #2

      I think you made an typing error in your sql code. It should it be whitelist not whitlist

    • apple123
      Anfänger
      Reaktionen
      4
      Trophäen
      6
      Beiträge
      65
      • 26. März 2020 um 16:06
      • #3
      Zitat von PeterMayer

      I think you made an typing error in your sql code. It should it be whitelist not whitlist

      yeah,tks!

    • CHX31
      Schüler
      Reaktionen
      10
      Trophäen
      6
      Beiträge
      139
      • 1. Mai 2020 um 22:23
      • #4

      Is there a way to say that players with whitelist level "0" can still play for up to 120 minutes, and only after this time they can no longer connect, or when they have whitelist level 1?

    Registrieren oder Einloggen

    Du bist noch kein Mitglied von NodeZone.net? Registriere dich kostenlos und werde Teil einer großartigen Community!

    Registrieren

    Tags

    • AltisLife 5.0

    Benutzer online in diesem Thema

    • 1 Besucher

    Wichtige Links & Informationen

    Server & Hosting-Ressourcen

      Server Administration & Hosting Basics

      Windows Server Support & Guides

      Linux Server Configuration & Help

      Setting up TeamSpeak 3 & VoIP Servers

      Domains & Web Hosting for Beginners & Professionals

      Cloud Hosting, Docker & Kubernetes Tutorials

    Gameserver & Modding-Ressourcen

      ArmA 3 Tutorials & Script Collection

      Renting & Operating Gameservers

      DayZ Server Management & Help

      FiveM (GTA V) Server & Script Development

      Rust Server Modding & Administration

      Setting up & Optimizing ARK Survival Servers

    NodeZone.net – Deine Community für Gameserver, Server-Hosting & Modding

      NodeZone.net ist dein Forum für Gameserver-Hosting, Rootserver, vServer, Webhosting und Modding. Seit 2015 bietet unsere Community eine zentrale Anlaufstelle für Server-Admins, Gamer und Technikbegeisterte, die sich über Server-Management, Hosting-Lösungen und Spielemodding austauschen möchten.


      Ob Anleitungen für eigene Gameserver, Hilfe bei Root- und vServer-Konfigurationen oder Tipps zu Modding & Scripting – bei uns findest du fundiertes Wissen und praxisnahe Tutorials. Mit einer stetig wachsenden Community findest du hier Antworten auf deine Fragen, Projektpartner und Gleichgesinnte für deine Gaming- und Serverprojekte. Schließe dich NodeZone.net an und werde Teil einer aktiven Community rund um Server-Hosting, Gameserver-Management und Modding-Ressourcen.

    Wer jetzt nicht teilt ist selber Schuld:
    1. Nutzungsbestimmungen
    2. Datenschutzerklärung
    3. Impressum
    4. Urheberrechts- oder Lizenzverstoß melden
  • Trimax Design coded & layout by Gino Zantarelli 2023-2025©
    Community-Software: WoltLab Suite™