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
Mo: 19 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. Hilfeforum

    ADAC Notruf

      • Altis Life
    • SeCTioN
    • 27. Mai 2020 um 09:44
    • Geschlossen
    • Erledigt
    • SeCTioN
      Anfänger
      Reaktionen
      6
      Trophäen
      8
      Beiträge
      74
      • 27. Mai 2020 um 09:44
      • #1

      Hallo zusammen,

      ich habe bei The_Programmer des Dispatch-System gekauft. Es funktioniert auch bei Cops und Medic´s. Der ADAC bekommt aber keinen Hint, also wird garnicht benachrichtigt. Wenn man aber was abschickt taucht dieser Dispatch auch im System auf. Als würde dort nur die Benachrichtigung fehlen.

      Hier meine functions.sqf:

      Code
      #include "script_macros.hpp"
      /*
          File: functions.sqf
          Author: Bryan "Tonic" Boardwine
      
          Description: They are functions.
      */
      
      publicVariable "TON_fnc_terrainSort";
      
      TON_fnc_index =
      compileFinal "
          params [
              ""_item"",
              [""_stack"",[],[[]]]
          ];
          
          _stack findIf {_item in _x};
      ";
      
      TON_fnc_player_query =
      compileFinal "
          private [""_ret""];
          _ret = _this select 0;
          if (isNull _ret) exitWith {};
          if (isNil ""_ret"") exitWith {};
      
          [life_atmbank,life_cash,owner player,player,profileNameSteam,getPlayerUID player,playerSide] remoteExecCall [""life_fnc_adminInfo"",_ret];
      ";
      publicVariable "TON_fnc_player_query";
      publicVariable "TON_fnc_index";
      
      TON_fnc_isNumber =
      compileFinal "
          params [
              ['_string','',['']]
          ];
          if (_string isEqualTo '') exitWith {false};
          private _array = _string splitString '';
          private _return = true;
          {
              if !(_x in ['0','1','2','3','4','5','6','7','8','9']) exitWith {
                  _return = false;
              };
          } forEach _array;
          _return;
      ";
      
      publicVariable "TON_fnc_isNumber";
      
      TON_fnc_clientGangKick =
      compileFinal "
          private [""_unit"",""_group""];
          _unit = _this select 0;
          _group = _this select 1;
          if (isNil ""_unit"" || isNil ""_group"") exitWith {};
          if (player isEqualTo _unit && (group player) == _group) then {
              life_my_gang = objNull;
              [player] joinSilent (createGroup civilian);
              hint localize ""STR_GNOTF_KickOutGang"";
          };
      ";
      
      publicVariable "TON_fnc_clientGangKick";
      
      TON_fnc_clientGetKey =
      compileFinal "
          private [""_vehicle"",""_unit"",""_giver""];
          _vehicle = _this select 0;
          _unit = _this select 1;
          _giver = _this select 2;
          if (isNil ""_unit"" || isNil ""_giver"") exitWith {};
          if (player isEqualTo _unit && !(_vehicle in life_vehicles)) then {
              _name = getText(configFile >> ""CfgVehicles"" >> (typeOf _vehicle) >> ""displayName"");
              hint format [localize ""STR_NOTF_gaveKeysFrom"",_giver,_name];
              life_vehicles pushBack _vehicle;
              [getPlayerUID player,playerSide,_vehicle,1] remoteExecCall [""TON_fnc_keyManagement"",2];
          };
      ";
      
      publicVariable "TON_fnc_clientGetKey";
      
      TON_fnc_clientGangLeader =
      compileFinal "
          private [""_unit"",""_group""];
          _unit = _this select 0;
          _group = _this select 1;
          if (isNil ""_unit"" || isNil ""_group"") exitWith {};
          if (player isEqualTo _unit && (group player) == _group) then {
              player setRank ""COLONEL"";
              _group selectLeader _unit;
              hint localize ""STR_GNOTF_GaveTransfer"";
          };
      ";
      
      publicVariable "TON_fnc_clientGangLeader";
      
      TON_fnc_clientGangLeft =
      compileFinal "
          private [""_unit"",""_group""];
          _unit = _this select 0;
          _group = _this select 1;
          if (isNil ""_unit"" || isNil ""_group"") exitWith {};
          if (player isEqualTo _unit && (group player) == _group) then {
              life_my_gang = objNull;
              [player] joinSilent (createGroup civilian);
              hint localize ""STR_GNOTF_LeaveGang"";
          };
      ";
      
      publicVariable "TON_fnc_clientGangLeft";
      
      //Cell Phone Messaging
      /*
          -fnc_cell_textmsg
          -fnc_cell_textcop
          -fnc_cell_textadmin
          -fnc_cell_adminmsg
          -fnc_cell_adminmsgall
      */
      
      //To EMS
      TON_fnc_cell_emsrequest =
      compileFinal "
      private [""_msg"",""_to""];
          ctrlShow[2404,false];
          _msg = ctrlText 2400;
          _length = count (toArray(_msg));
          if (_length > 400) exitWith {hint localize ""STR_CELLMSG_LIMITEXCEEDED"";ctrlShow[2404,true];};
          _to = ""EMS Units"";
          if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2404,true];};
      
          [_msg,name player,5,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",independent];
          [] call life_fnc_cellphone;
          hint format [localize ""STR_CELLMSG_ToEMS"",_to,_msg];
          ctrlShow[2404,true];
          maxence_waiting_med_calls pushBack [(name player),(position player),_msg,servertime,"""", player,0];
          publicVariable ""maxence_waiting_med_calls"";
      ";
      
      TON_fnc_cell_adacrequest =
      compileFinal "
      private [""_msg"",""_to""];
          ctrlShow[2405,false];
          _msg = ctrlText 2400;
          _length = count (toArray(_msg));
          if (_length > 400) exitWith {hint localize ""STR_CELLMSG_LIMITEXCEEDED"";ctrlShow[2405,true];};
          _to = ""FLAC Units"";
          if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2405,true];};
      
          [_msg,name player,5,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",east];
          [] call life_fnc_cellphone;
          hint format [localize ""STR_CELLMSG_ToEAST"",_to,_msg];
          ctrlShow[2405,true];
          maxence_waiting_adac_calls pushBack [(name player),(position player),_msg,servertime,"""", player,0];
          publicVariable ""maxence_waiting_adac_calls"";
      ";
      //To One Person
      TON_fnc_cell_textmsg =
      compileFinal "
         private [""_msg"",""_to""];
         ctrlShow[2401,false];
         _msg = ctrlText 2400;
      
         _length = count (toArray(_msg));
         if (_length > 400) exitWith {hint localize ""STR_CELLMSG_LIMITEXCEEDED"";ctrlShow[2401,true];};
         if (lbCurSel 3004 isEqualTo -1) exitWith {hint localize ""STR_CELLMSG_SelectPerson""; ctrlShow[2401,true];};
      
         _to = call compile format [""%1"",(lbData[3004,(lbCurSel 3004)])];
         if (isNull _to) exitWith {ctrlShow[2401,true];};
         if (isNil ""_to"") exitWith {ctrlShow[2401,true];};
         if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2401,true];};
      
         [_msg,name player,0] remoteExecCall [""TON_fnc_clientMessage"",_to];
         [] call life_fnc_cellphone;
         hint format [localize ""STR_CELLMSG_ToPerson"",name _to,_msg];
         ctrlShow[2401,true];
      ";
      //To All Cops
      TON_fnc_cell_textcop =
      compileFinal "
          private [""_msg"",""_to""];
          ctrlShow[2402,false];
          _msg = ctrlText 2400;
          _to = ""The Police"";
      
          if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2402,true];};
          _length = count (toArray(_msg));
          if (_length > 400) exitWith {hint localize ""STR_CELLMSG_LIMITEXCEEDED"";ctrlShow[2402,true];};
      
          [_msg,name player,1,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",-2];
          [] call life_fnc_cellphone;
          hint format [localize ""STR_CELLMSG_ToPerson"",_to,_msg];
          ctrlShow[2402,true];
          maxence_waiting_cop_calls pushBack [(name player),(position player),_msg,servertime,"""", player,0];
          publicVariable ""maxence_waiting_cop_calls"";
      ";
      //To All Admins
      TON_fnc_cell_textadmin =
      compileFinal "
          private [""_msg"",""_to"",""_from""];
          ctrlShow[2403,false];
          _msg = ctrlText 2400;
          _to = ""The Admins"";
      
          if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2403,true];};
          _length = count (toArray(_msg));
          if (_length > 400) exitWith {hint localize ""STR_CELLMSG_LIMITEXCEEDED"";ctrlShow[2403,true];};
      
          [_msg,name player,2,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",-2];
          [] call life_fnc_cellphone;
          hint format [localize ""STR_CELLMSG_ToPerson"",_to,_msg];
          ctrlShow[2403,true];
      ";
      //Admin To One Person
      TON_fnc_cell_adminmsg =
      compileFinal "
          if (isServer) exitWith {};
          if ((call life_adminlevel) < 1) exitWith {hint localize ""STR_CELLMSG_NoAdmin"";};
          private [""_msg"",""_to""];
          ctrlShow[2407,false];
          _msg = ctrlText 2400;
          _to = call compile format [""%1"",(lbData[2100,(lbCurSel 2100)])];
          if (isNull _to) exitWith {ctrlShow[2407,true];};
          if (isNil ""_to"") exitWith {ctrlShow[2407,true];};
          if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2407,true];};
      
          [_msg,name player,3] remoteExecCall [""TON_fnc_clientMessage"",_to];
          [] call life_fnc_cellphone;
          hint format [localize ""STR_CELLMSG_AdminToPerson"",name _to,_msg];
          ctrlShow[2407,true];
      ";
      
      TON_fnc_cell_adminmsgall =
      compileFinal "
          if (isServer) exitWith {};
          if ((call life_adminlevel) < 1) exitWith {hint localize ""STR_CELLMSG_NoAdmin"";};
          private [""_msg"",""_from""];
          ctrlShow[2406,false];
          _msg = ctrlText 2400;
          if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2406,true];};
      
          [_msg,name player,4] remoteExecCall [""TON_fnc_clientMessage"",-2];
          [] call life_fnc_cellphone;
          hint format [localize ""STR_CELLMSG_AdminToAll"",_msg];
          ctrlShow[2406,true];
      ";
      
      publicVariable "TON_fnc_cell_textmsg";
      publicVariable "TON_fnc_cell_textcop";
      publicVariable "TON_fnc_cell_textadmin";
      publicVariable "TON_fnc_cell_adminmsg";
      publicVariable "TON_fnc_cell_adminmsgall";
      publicVariable "TON_fnc_cell_emsrequest";
      publicVariable "TON_fnc_cell_adacrequest";
      //Client Message
      /*
          0 = private message
          1 = police message
          2 = message to admin
          3 = message from admin
          4 = admin message to all
      */
      TON_fnc_clientMessage =
      compileFinal "
          if (isServer) exitWith {};
          private [""_msg"",""_from"", ""_type""];
          _msg = _this select 0;
          _from = _this select 1;
          _type = _this select 2;
          if (_from isEqualTo """") exitWith {};
          switch (_type) do {
              case 0 : {
                  private [""_message""];
                  _message = format ["">>>Nachricht von %1: %2"",_from,_msg];
                  hint parseText format [""<t color='#FFCC00'><t size='2'><t align='center'>Neue Nachricht<br/><br/><t color='#33CC33'><t align='left'><t size='1'>Für: <t color='#ffffff'>Dich<br/><t color='#33CC33'>Von: <t color='#ffffff'>%1<br/><br/><t color='#33CC33'>Nachricht:<br/><t color='#ffffff'>%2"",_from,_msg];
      
                  [""TextMessage"",[format [""Du erhälst einen neue Nachricht von %1"",_from]]] call bis_fnc_showNotification;
                  systemChat _message;
              };
      
              case 1 : {
                  if (side player != west) exitWith {};
                  private [""_message"",""_loc"",""_unit""];
                  _loc = _this select 3;
                  _unit = _this select 4;
                  _message = format [""--- 110 Dispatch von %1: %2"",_from,_msg];
                  if (isNil ""_loc"") then {_loc = ""Unknown"";};
                  hint parseText format [""<t color='#316dff'><t size='2'><t align='center'>Neuer Dispatch<br/><br/><t color='#33CC33'><t align='left'><t size='1'>Für: <t color='#ffffff'>Alle Polizisten<br/><t color='#33CC33'>Von: <t color='#ffffff'>%1<br/><t color='#33CC33'>Koords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Nachricht:<br/><t color='#ffffff'>%3"",_from,_loc,_msg];
      
                  [""PoliceDispatch"",[format [""Ein neuer Polizei-Notruf von: %1"",_from]]] call bis_fnc_showNotification;
                  systemChat _message;
              };
      
              case 2 : {
                  if ((call life_adminlevel) < 1) exitWith {};
                  private [""_message"",""_loc"",""_unit""];
                  _loc = _this select 3;
                  _unit = _this select 4;
                  _message = format [""!!! Admin Anfrage von %1: %2"",_from,_msg];
                  if (isNil ""_loc"") then {_loc = ""Unknown"";};
                  hint parseText format [""<t color='#ffcefe'><t size='2'><t align='center'>Admin Request<br/><br/><t color='#33CC33'><t align='left'><t size='1'>Für: <t color='#ffffff'>Admins<br/><t color='#33CC33'>Von: <t color='#ffffff'>%1<br/><t color='#33CC33'>Koords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Nachricht:<br/><t color='#ffffff'>%3"",_from,_loc,_msg];
      
                  [""AdminDispatch"",[format [""%1 hat einen Admin kontaktiert!"",_from]]] call bis_fnc_showNotification;
                  systemChat _message;
              };
      
              case 3 : {
                  private [""_message""];
                  _message = format [""!!! Admin Nachricht: %1"",_msg];
                  _admin = format [""Gesendet von Admin: %1"", _from];
                  hint parseText format [""<t color='#FF0000'><t size='2'><t align='center'>Admin Nachricht<br/><br/><t color='#33CC33'><t align='left'><t size='1'>Für: <t color='#ffffff'>Dich<br/><t color='#33CC33'>Von: <t color='#ffffff'>An Admin<br/><br/><t color='#33CC33'>Nachricht:<br/><t color='#ffffff'>%1"",_msg];
      
                  [""AdminMessage"",[""Du hast eine Nachricht von einem Admion erhalten!""]] call bis_fnc_showNotification;
                  systemChat _message;
                  if ((call life_adminlevel) > 0) then {systemChat _admin;};
              };
      
              case 4 : {
                  private [""_message"",""_admin""];
                  _message = format [""!!!Admin Nachricht: %1"",_msg];
                  _admin = format [""Gesendet von Admin: %1"", _from];
                  hint parseText format [""<t color='#FF0000'><t size='2'><t align='center'>Admin Nachricht<br/><br/><t color='#33CC33'><t align='left'><t size='1'>Für: <t color='#ffffff'>Alle Spieler<br/><t color='#33CC33'>Von: <t color='#ffffff'>Den Admins<br/><br/><t color='#33CC33'>Nachricht:<br/><t color='#ffffff'>%1"",_msg];
      
                  [""AdminMessage"",[""Du hast eine Nachricht von einem Admion erhalten!""]] call bis_fnc_showNotification;
                  systemChat _message;
                  if ((call life_adminlevel) > 0) then {systemChat _admin;};
              };
      
              case 5: {
                  if (side player != independent) exitWith {};
                  private [""_message"",""_loc"",""_unit""];
                  _loc = _this select 3;
                  _unit = _this select 4;
                  _message = format [""!!! Medic Request: %1"",_msg];
                  hint parseText format [""<t color='#FFCC00'><t size='2'><t align='center'>Medic Request<br/><br/><t color='#33CC33'><t align='left'><t size='1'>Für: <t color='#ffffff'>Alle Medic-Mitarbeiter<br/><t color='#33CC33'>Von: <t color='#ffffff'>%1<br/><t color='#33CC33'>Koords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Nachricht:<br/><t color='#ffffff'>%3"",_from,_loc,_msg];
      
                  [""TextMessage"",[format [""Medic Request von %1"",_from]]] call bis_fnc_showNotification;
              };
              
              case 6: {
                  if (side player != east) exitWith {};
                  private [""_message"",""_loc"",""_unit""];
                  _loc = _this select 3;
                  _unit = _this select 4;
                  _message = format [""--- FLAC Dispatch von %1: %2"",_from,_msg];
                  if (isNil ""_loc"") then {_loc = ""Unknown"";};
                  hint parseText format [""<t color='#316dff'><t size='2'><t align='center'>Neuer Dispatch<br/><br/><t color='#33CC33'><t align='left'><t size='1'>Für: <t color='#ffffff'>Alle FLAC-Mitarbeiter<br/><t color='#33CC33'>Von: <t color='#ffffff'>%1<br/><t color='#33CC33'>Koords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Nachricht:<br/><t color='#ffffff'>%3"",_from,_loc,_msg];
      
                  [""PoliceDispatch"",[format [""Ein neuer FLAC-Notruf von: %1"",_from]]] call bis_fnc_showNotification;
                  systemChat _message;
              };
          };
      ";
      publicVariable "TON_fnc_clientMessage";
      Alles anzeigen

      In den RPT Log´s steht nichts drin zwecks dieser Sache.

      Jemand ne Idee?

      MFG

      <<< http://fastliferpg.de

    • NiceKype
      Profi
      Reaktionen
      554
      Trophäen
      9
      Beiträge
      996
      Dateien
      1
      Bilder
      62
      • 27. Mai 2020 um 09:49
      • #2
      Zitat von SeCTioN

      Hallo zusammen,

      ich habe bei The_Programmer des Dispatch-System gekauft. Es funktioniert auch bei Cops und Medic´s. Der ADAC bekommt aber keinen Hint, also wird garnicht benachrichtigt. Wenn man aber was abschickt taucht dieser Dispatch auch im System auf. Als würde dort nur die Benachrichtigung fehlen.

      Hier meine functions.sqf:

      Code
      #include "script_macros.hpp"
      /*
          File: functions.sqf
          Author: Bryan "Tonic" Boardwine
      
          Description: They are functions.
      */
      
      publicVariable "TON_fnc_terrainSort";
      
      TON_fnc_index =
      compileFinal "
          params [
              ""_item"",
              [""_stack"",[],[[]]]
          ];
          
          _stack findIf {_item in _x};
      ";
      
      TON_fnc_player_query =
      compileFinal "
          private [""_ret""];
          _ret = _this select 0;
          if (isNull _ret) exitWith {};
          if (isNil ""_ret"") exitWith {};
      
          [life_atmbank,life_cash,owner player,player,profileNameSteam,getPlayerUID player,playerSide] remoteExecCall [""life_fnc_adminInfo"",_ret];
      ";
      publicVariable "TON_fnc_player_query";
      publicVariable "TON_fnc_index";
      
      TON_fnc_isNumber =
      compileFinal "
          params [
              ['_string','',['']]
          ];
          if (_string isEqualTo '') exitWith {false};
          private _array = _string splitString '';
          private _return = true;
          {
              if !(_x in ['0','1','2','3','4','5','6','7','8','9']) exitWith {
                  _return = false;
              };
          } forEach _array;
          _return;
      ";
      
      publicVariable "TON_fnc_isNumber";
      
      TON_fnc_clientGangKick =
      compileFinal "
          private [""_unit"",""_group""];
          _unit = _this select 0;
          _group = _this select 1;
          if (isNil ""_unit"" || isNil ""_group"") exitWith {};
          if (player isEqualTo _unit && (group player) == _group) then {
              life_my_gang = objNull;
              [player] joinSilent (createGroup civilian);
              hint localize ""STR_GNOTF_KickOutGang"";
          };
      ";
      
      publicVariable "TON_fnc_clientGangKick";
      
      TON_fnc_clientGetKey =
      compileFinal "
          private [""_vehicle"",""_unit"",""_giver""];
          _vehicle = _this select 0;
          _unit = _this select 1;
          _giver = _this select 2;
          if (isNil ""_unit"" || isNil ""_giver"") exitWith {};
          if (player isEqualTo _unit && !(_vehicle in life_vehicles)) then {
              _name = getText(configFile >> ""CfgVehicles"" >> (typeOf _vehicle) >> ""displayName"");
              hint format [localize ""STR_NOTF_gaveKeysFrom"",_giver,_name];
              life_vehicles pushBack _vehicle;
              [getPlayerUID player,playerSide,_vehicle,1] remoteExecCall [""TON_fnc_keyManagement"",2];
          };
      ";
      
      publicVariable "TON_fnc_clientGetKey";
      
      TON_fnc_clientGangLeader =
      compileFinal "
          private [""_unit"",""_group""];
          _unit = _this select 0;
          _group = _this select 1;
          if (isNil ""_unit"" || isNil ""_group"") exitWith {};
          if (player isEqualTo _unit && (group player) == _group) then {
              player setRank ""COLONEL"";
              _group selectLeader _unit;
              hint localize ""STR_GNOTF_GaveTransfer"";
          };
      ";
      
      publicVariable "TON_fnc_clientGangLeader";
      
      TON_fnc_clientGangLeft =
      compileFinal "
          private [""_unit"",""_group""];
          _unit = _this select 0;
          _group = _this select 1;
          if (isNil ""_unit"" || isNil ""_group"") exitWith {};
          if (player isEqualTo _unit && (group player) == _group) then {
              life_my_gang = objNull;
              [player] joinSilent (createGroup civilian);
              hint localize ""STR_GNOTF_LeaveGang"";
          };
      ";
      
      publicVariable "TON_fnc_clientGangLeft";
      
      //Cell Phone Messaging
      /*
          -fnc_cell_textmsg
          -fnc_cell_textcop
          -fnc_cell_textadmin
          -fnc_cell_adminmsg
          -fnc_cell_adminmsgall
      */
      
      //To EMS
      TON_fnc_cell_emsrequest =
      compileFinal "
      private [""_msg"",""_to""];
          ctrlShow[2404,false];
          _msg = ctrlText 2400;
          _length = count (toArray(_msg));
          if (_length > 400) exitWith {hint localize ""STR_CELLMSG_LIMITEXCEEDED"";ctrlShow[2404,true];};
          _to = ""EMS Units"";
          if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2404,true];};
      
          [_msg,name player,5,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",independent];
          [] call life_fnc_cellphone;
          hint format [localize ""STR_CELLMSG_ToEMS"",_to,_msg];
          ctrlShow[2404,true];
          maxence_waiting_med_calls pushBack [(name player),(position player),_msg,servertime,"""", player,0];
          publicVariable ""maxence_waiting_med_calls"";
      ";
      
      TON_fnc_cell_adacrequest =
      compileFinal "
      private [""_msg"",""_to""];
          ctrlShow[2405,false];
          _msg = ctrlText 2400;
          _length = count (toArray(_msg));
          if (_length > 400) exitWith {hint localize ""STR_CELLMSG_LIMITEXCEEDED"";ctrlShow[2405,true];};
          _to = ""FLAC Units"";
          if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2405,true];};
      
          [_msg,name player,5,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",east];
          [] call life_fnc_cellphone;
          hint format [localize ""STR_CELLMSG_ToEAST"",_to,_msg];
          ctrlShow[2405,true];
          maxence_waiting_adac_calls pushBack [(name player),(position player),_msg,servertime,"""", player,0];
          publicVariable ""maxence_waiting_adac_calls"";
      ";
      //To One Person
      TON_fnc_cell_textmsg =
      compileFinal "
         private [""_msg"",""_to""];
         ctrlShow[2401,false];
         _msg = ctrlText 2400;
      
         _length = count (toArray(_msg));
         if (_length > 400) exitWith {hint localize ""STR_CELLMSG_LIMITEXCEEDED"";ctrlShow[2401,true];};
         if (lbCurSel 3004 isEqualTo -1) exitWith {hint localize ""STR_CELLMSG_SelectPerson""; ctrlShow[2401,true];};
      
         _to = call compile format [""%1"",(lbData[3004,(lbCurSel 3004)])];
         if (isNull _to) exitWith {ctrlShow[2401,true];};
         if (isNil ""_to"") exitWith {ctrlShow[2401,true];};
         if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2401,true];};
      
         [_msg,name player,0] remoteExecCall [""TON_fnc_clientMessage"",_to];
         [] call life_fnc_cellphone;
         hint format [localize ""STR_CELLMSG_ToPerson"",name _to,_msg];
         ctrlShow[2401,true];
      ";
      //To All Cops
      TON_fnc_cell_textcop =
      compileFinal "
          private [""_msg"",""_to""];
          ctrlShow[2402,false];
          _msg = ctrlText 2400;
          _to = ""The Police"";
      
          if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2402,true];};
          _length = count (toArray(_msg));
          if (_length > 400) exitWith {hint localize ""STR_CELLMSG_LIMITEXCEEDED"";ctrlShow[2402,true];};
      
          [_msg,name player,1,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",-2];
          [] call life_fnc_cellphone;
          hint format [localize ""STR_CELLMSG_ToPerson"",_to,_msg];
          ctrlShow[2402,true];
          maxence_waiting_cop_calls pushBack [(name player),(position player),_msg,servertime,"""", player,0];
          publicVariable ""maxence_waiting_cop_calls"";
      ";
      //To All Admins
      TON_fnc_cell_textadmin =
      compileFinal "
          private [""_msg"",""_to"",""_from""];
          ctrlShow[2403,false];
          _msg = ctrlText 2400;
          _to = ""The Admins"";
      
          if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2403,true];};
          _length = count (toArray(_msg));
          if (_length > 400) exitWith {hint localize ""STR_CELLMSG_LIMITEXCEEDED"";ctrlShow[2403,true];};
      
          [_msg,name player,2,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",-2];
          [] call life_fnc_cellphone;
          hint format [localize ""STR_CELLMSG_ToPerson"",_to,_msg];
          ctrlShow[2403,true];
      ";
      //Admin To One Person
      TON_fnc_cell_adminmsg =
      compileFinal "
          if (isServer) exitWith {};
          if ((call life_adminlevel) < 1) exitWith {hint localize ""STR_CELLMSG_NoAdmin"";};
          private [""_msg"",""_to""];
          ctrlShow[2407,false];
          _msg = ctrlText 2400;
          _to = call compile format [""%1"",(lbData[2100,(lbCurSel 2100)])];
          if (isNull _to) exitWith {ctrlShow[2407,true];};
          if (isNil ""_to"") exitWith {ctrlShow[2407,true];};
          if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2407,true];};
      
          [_msg,name player,3] remoteExecCall [""TON_fnc_clientMessage"",_to];
          [] call life_fnc_cellphone;
          hint format [localize ""STR_CELLMSG_AdminToPerson"",name _to,_msg];
          ctrlShow[2407,true];
      ";
      
      TON_fnc_cell_adminmsgall =
      compileFinal "
          if (isServer) exitWith {};
          if ((call life_adminlevel) < 1) exitWith {hint localize ""STR_CELLMSG_NoAdmin"";};
          private [""_msg"",""_from""];
          ctrlShow[2406,false];
          _msg = ctrlText 2400;
          if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2406,true];};
      
          [_msg,name player,4] remoteExecCall [""TON_fnc_clientMessage"",-2];
          [] call life_fnc_cellphone;
          hint format [localize ""STR_CELLMSG_AdminToAll"",_msg];
          ctrlShow[2406,true];
      ";
      
      publicVariable "TON_fnc_cell_textmsg";
      publicVariable "TON_fnc_cell_textcop";
      publicVariable "TON_fnc_cell_textadmin";
      publicVariable "TON_fnc_cell_adminmsg";
      publicVariable "TON_fnc_cell_adminmsgall";
      publicVariable "TON_fnc_cell_emsrequest";
      publicVariable "TON_fnc_cell_adacrequest";
      //Client Message
      /*
          0 = private message
          1 = police message
          2 = message to admin
          3 = message from admin
          4 = admin message to all
      */
      TON_fnc_clientMessage =
      compileFinal "
          if (isServer) exitWith {};
          private [""_msg"",""_from"", ""_type""];
          _msg = _this select 0;
          _from = _this select 1;
          _type = _this select 2;
          if (_from isEqualTo """") exitWith {};
          switch (_type) do {
              case 0 : {
                  private [""_message""];
                  _message = format ["">>>Nachricht von %1: %2"",_from,_msg];
                  hint parseText format [""<t color='#FFCC00'><t size='2'><t align='center'>Neue Nachricht<br/><br/><t color='#33CC33'><t align='left'><t size='1'>Für: <t color='#ffffff'>Dich<br/><t color='#33CC33'>Von: <t color='#ffffff'>%1<br/><br/><t color='#33CC33'>Nachricht:<br/><t color='#ffffff'>%2"",_from,_msg];
      
                  [""TextMessage"",[format [""Du erhälst einen neue Nachricht von %1"",_from]]] call bis_fnc_showNotification;
                  systemChat _message;
              };
      
              case 1 : {
                  if (side player != west) exitWith {};
                  private [""_message"",""_loc"",""_unit""];
                  _loc = _this select 3;
                  _unit = _this select 4;
                  _message = format [""--- 110 Dispatch von %1: %2"",_from,_msg];
                  if (isNil ""_loc"") then {_loc = ""Unknown"";};
                  hint parseText format [""<t color='#316dff'><t size='2'><t align='center'>Neuer Dispatch<br/><br/><t color='#33CC33'><t align='left'><t size='1'>Für: <t color='#ffffff'>Alle Polizisten<br/><t color='#33CC33'>Von: <t color='#ffffff'>%1<br/><t color='#33CC33'>Koords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Nachricht:<br/><t color='#ffffff'>%3"",_from,_loc,_msg];
      
                  [""PoliceDispatch"",[format [""Ein neuer Polizei-Notruf von: %1"",_from]]] call bis_fnc_showNotification;
                  systemChat _message;
              };
      
              case 2 : {
                  if ((call life_adminlevel) < 1) exitWith {};
                  private [""_message"",""_loc"",""_unit""];
                  _loc = _this select 3;
                  _unit = _this select 4;
                  _message = format [""!!! Admin Anfrage von %1: %2"",_from,_msg];
                  if (isNil ""_loc"") then {_loc = ""Unknown"";};
                  hint parseText format [""<t color='#ffcefe'><t size='2'><t align='center'>Admin Request<br/><br/><t color='#33CC33'><t align='left'><t size='1'>Für: <t color='#ffffff'>Admins<br/><t color='#33CC33'>Von: <t color='#ffffff'>%1<br/><t color='#33CC33'>Koords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Nachricht:<br/><t color='#ffffff'>%3"",_from,_loc,_msg];
      
                  [""AdminDispatch"",[format [""%1 hat einen Admin kontaktiert!"",_from]]] call bis_fnc_showNotification;
                  systemChat _message;
              };
      
              case 3 : {
                  private [""_message""];
                  _message = format [""!!! Admin Nachricht: %1"",_msg];
                  _admin = format [""Gesendet von Admin: %1"", _from];
                  hint parseText format [""<t color='#FF0000'><t size='2'><t align='center'>Admin Nachricht<br/><br/><t color='#33CC33'><t align='left'><t size='1'>Für: <t color='#ffffff'>Dich<br/><t color='#33CC33'>Von: <t color='#ffffff'>An Admin<br/><br/><t color='#33CC33'>Nachricht:<br/><t color='#ffffff'>%1"",_msg];
      
                  [""AdminMessage"",[""Du hast eine Nachricht von einem Admion erhalten!""]] call bis_fnc_showNotification;
                  systemChat _message;
                  if ((call life_adminlevel) > 0) then {systemChat _admin;};
              };
      
              case 4 : {
                  private [""_message"",""_admin""];
                  _message = format [""!!!Admin Nachricht: %1"",_msg];
                  _admin = format [""Gesendet von Admin: %1"", _from];
                  hint parseText format [""<t color='#FF0000'><t size='2'><t align='center'>Admin Nachricht<br/><br/><t color='#33CC33'><t align='left'><t size='1'>Für: <t color='#ffffff'>Alle Spieler<br/><t color='#33CC33'>Von: <t color='#ffffff'>Den Admins<br/><br/><t color='#33CC33'>Nachricht:<br/><t color='#ffffff'>%1"",_msg];
      
                  [""AdminMessage"",[""Du hast eine Nachricht von einem Admion erhalten!""]] call bis_fnc_showNotification;
                  systemChat _message;
                  if ((call life_adminlevel) > 0) then {systemChat _admin;};
              };
      
              case 5: {
                  if (side player != independent) exitWith {};
                  private [""_message"",""_loc"",""_unit""];
                  _loc = _this select 3;
                  _unit = _this select 4;
                  _message = format [""!!! Medic Request: %1"",_msg];
                  hint parseText format [""<t color='#FFCC00'><t size='2'><t align='center'>Medic Request<br/><br/><t color='#33CC33'><t align='left'><t size='1'>Für: <t color='#ffffff'>Alle Medic-Mitarbeiter<br/><t color='#33CC33'>Von: <t color='#ffffff'>%1<br/><t color='#33CC33'>Koords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Nachricht:<br/><t color='#ffffff'>%3"",_from,_loc,_msg];
      
                  [""TextMessage"",[format [""Medic Request von %1"",_from]]] call bis_fnc_showNotification;
              };
              
              case 6: {
                  if (side player != east) exitWith {};
                  private [""_message"",""_loc"",""_unit""];
                  _loc = _this select 3;
                  _unit = _this select 4;
                  _message = format [""--- FLAC Dispatch von %1: %2"",_from,_msg];
                  if (isNil ""_loc"") then {_loc = ""Unknown"";};
                  hint parseText format [""<t color='#316dff'><t size='2'><t align='center'>Neuer Dispatch<br/><br/><t color='#33CC33'><t align='left'><t size='1'>Für: <t color='#ffffff'>Alle FLAC-Mitarbeiter<br/><t color='#33CC33'>Von: <t color='#ffffff'>%1<br/><t color='#33CC33'>Koords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Nachricht:<br/><t color='#ffffff'>%3"",_from,_loc,_msg];
      
                  [""PoliceDispatch"",[format [""Ein neuer FLAC-Notruf von: %1"",_from]]] call bis_fnc_showNotification;
                  systemChat _message;
              };
          };
      ";
      publicVariable "TON_fnc_clientMessage";
      Alles anzeigen

      In den RPT Log´s steht nichts drin zwecks dieser Sache.

      Jemand ne Idee?

      MFG

      Alles anzeigen

      Ich würde dir raten, immer zuerst den Support des Verkäufers zu kontaktieren. Also den Contributor bei The-Programmer per Support anschreiben, wäre die eigentlich beste Lösung

      𝗡𝗜𝗖𝗘𝗞𝗬𝗣𝗘 // 𝗧𝗜𝗠𝗢

      ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
      MEINE LINKS:

      Have Fun, stay Nice
      ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

    • SeCTioN
      Anfänger
      Reaktionen
      6
      Trophäen
      8
      Beiträge
      74
      • 27. Mai 2020 um 09:56
      • #3
      Zitat von NiceKype

      Ich würde dir raten, immer zuerst den Support des Verkäufers zu kontaktieren. Also den Contributor bei The-Programmer per Support anschreiben, wäre die eigentlich beste Lösung

      Das habe ich getan, aber die sind auch ratlos

      <<< http://fastliferpg.de

    • SeCTioN
      Anfänger
      Reaktionen
      6
      Trophäen
      8
      Beiträge
      74
      • 27. Mai 2020 um 15:43
      • #4

      Ok, habe es gelöst. Kann geclosed werden. Danke für die Hilfe nochmal :)

      <<< http://fastliferpg.de

    • blackfisch
      Legende
      Reaktionen
      2.944
      Trophäen
      9
      Beiträge
      5.966
      Dateien
      6
      Bilder
      63
      • 27. Mai 2020 um 16:12
      • #5
      Zitat von SeCTioN

      Ok, habe es gelöst. Kann geclosed werden. Danke für die Hilfe nochmal :)

      wie lautete denn die Lösung?

      #MakeArmaNotWar

      Kein Support via PN & Steam! / No Support via DM & Steam!


      Mit freundlichen Grüßen
      blackfisch
      ______________________

      Web: blackfisch.me

      GitHub: GitHub.com/blackfisch

      Mail: [email protected]

      ______________________
      Wichtige Links:
      [Erklärung|Leitfaden] Code Optimierung

      [Tutorial] life_fnc_MP zu remoteExec

      Ohne Logs & entsprechende Dateien kein Support!

      ______________________

    • SeCTioN
      Anfänger
      Reaktionen
      6
      Trophäen
      8
      Beiträge
      74
      • 27. Mai 2020 um 17:25
      • #6

      Die Lösung ist, dass man die case zusätzlich noch ändern muss. Hier ein Beispiel:


      Spoiler anzeigen

      //To All Cops

      TON_fnc_cell_textcop =

      compileFinal "

      private [""_msg"",""_to""];

      ctrlShow[2402,false];

      _msg = ctrlText 2400;

      _to = ""The Police"";

      if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2402,true];};

      _length = count (toArray(_msg));

      if (_length > 400) exitWith {hint localize ""STR_CELLMSG_LIMITEXCEEDED"";ctrlShow[2402,true];};

      [_msg,name player,1,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",-2];

      [] call life_fnc_cellphone;

      hint format [localize ""STR_CELLMSG_ToPerson"",_to,_msg];

      ctrlShow[2402,true];

      maxence_waiting_cop_calls pushBack [(name player),(position player),_msg,servertime,"""", player,0];

      publicVariable ""maxence_waiting_cop_calls"";

      ";


      Und hier die Case:


      Spoiler anzeigen

      case 1 : {

      if (side player != west) exitWith {};

      private [""_message"",""_loc"",""_unit""];

      _loc = _this select 3;

      _unit = _this select 4;

      _message = format [""--- 110 Dispatch von %1: %2"",_from,_msg];

      if (isNil ""_loc"") then {_loc = ""Unknown"";};

      hint parseText format [""<t color='#316dff'><t size='2'><t align='center'>Neuer Dispatch<br/><br/><t color='#33CC33'><t align='left'><t size='1'>Für: <t color='#ffffff'>Alle Polizisten<br/><t color='#33CC33'>Von: <t color='#ffffff'>%1<br/><t color='#33CC33'>Koords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Nachricht:<br/><t color='#ffffff'>%3"",_from,_loc,_msg];

      [""PoliceDispatch"",[format [""Ein neuer Polizei-Notruf von: %1"",_from]]] call bis_fnc_showNotification;

      systemChat _message;

      };


      Hoffe es hilft den Leuten.

      <<< http://fastliferpg.de

      Einmal editiert, zuletzt von SeCTioN (27. Mai 2020 um 17:34)

    • Alice Kingsleigh 27. Mai 2020 um 18:08

      Hat das Thema geschlossen.

    Registrieren oder Einloggen

    Du bist noch kein Mitglied von Native-Servers.com? Registriere dich kostenlos und werde Teil einer großartigen Community!

    Benutzerkonto erstellen

    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™