Ich kann ja hier in denn Anhang mal das hängen was ich bearbeitet habe. Ich habe das SQL-Handy nicht in dem Fall musste ich das ja wie oben beschrieben war machen.
Das ist die cell_phone.hpp und die description.ext (Konnte diese nicht in den Anhang machen)
cell_phone.hpp
Code
class Life_cell_phone {
idd = 3000;
name= "life_cell_phone";
movingEnable = 0;
enableSimulation = 1;
onLoad = "[] spawn life_fnc_cellphone";
class controlsBackground {
class Life_RscTitleBackground: Life_RscText {
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
idc = -1;
x = 0.1;
y = 0.2;
w = 0.64;
h = (1 / 25);
};
class MainBackground: Life_RscText {
colorBackground[] = {0, 0, 0, 0.7};
idc = -1;
x = 0.1;
y = 0.2 + (11 / 250);
w = 0.64;
h = 0.3 - (5 / 250);
};
};
class controls {
class Title: Life_RscTitle {
colorBackground[] = {0, 0, 0, 0};
idc = 3001;
text = "$STR_CELL_Title";
x = 0.1;
y = 0.2;
w = 0.6;
h = (1 / 25);
};
class TextToSend: Life_RscTitle {
colorBackground[] = {0, 0, 0, 0};
idc = 3002;
text = "$STR_CELL_TextToSend";
x = 0.1;
y = 0.25;
w = 0.6;
h = (1 / 25);
};
class textEdit: Life_RscEdit {
idc = 3003;
text = "";
sizeEx = 0.030;
x = 0.11;
y = 0.3;
w = 0.62;
h = 0.03;
};
class TextMsgButton: Life_RscButtonMenu {
idc = 3015;
text = "$STR_CELL_TextMSGBtn";
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
onButtonClick = "[] call TON_fnc_cell_textmsg";
x = 0.11;
y = 0.35;
w = 0.2;
h = (1 / 25);
};
class PlayerList: Life_RscCombo {
idc = 3004;
x = 0.11;
y = 0.4;
w = 0.2;
h = (1 / 25);
};
class TextCopButton: Life_RscButtonMenu {
idc = 3016;
text = "$STR_CELL_TextPolice";
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
onButtonClick = "[] call TON_fnc_cell_textcop";
x = 0.32;
y = 0.35;
w = 0.2;
h = (1 / 25);
};
class TextAdminButton: Life_RscButtonMenu {
idc = 3017;
text = "$STR_CELL_TextAdmins";
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
onButtonClick = "[] call TON_fnc_cell_textadmin";
x = 0.53;
y = 0.35;
w = 0.2;
h = (1 / 25);
};
class AdminMsgButton: Life_RscButtonMenu {
idc = 3020;
text = "$STR_CELL_AdminMsg";
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
onButtonClick = "[] call TON_fnc_cell_adminmsg";
x = 0.32;
y = 0.4;
w = 0.2;
h = (1 / 25);
};
class AdminMsgAllButton: Life_RscButtonMenu {
idc = 3021;
text = "$STR_CELL_AdminMSGAll";
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
onButtonClick = "[] call TON_fnc_cell_adminmsgall";
x = 0.53;
y = 0.4;
w = 0.2;
h = (1 / 25);
};
class EMSRequest: Life_RscButtonMenu {
idc = 3022;
text = "$STR_CELL_EMSRequest";
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
onButtonClick = "[] call TON_fnc_cell_emsrequest";
x = 0.11;
y = 0.45;
w = 0.2;
h = (1 / 25);
};
class PoliceMsgAllButton : life_RscButtonMenu {
idc = 3023;
text = "Rundfunk";
colorBackground[] = {"(profileNamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profileNamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profileNamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
onButtonClick = "[] call TON_fnc_cell_polizeimsgall";
x = 0.32;
y = 0.45;
w = 0.2;
h = (1 / 25);
};
class CloseButtonKey: Life_RscButtonMenu {
idc = -1;
text = "$STR_Global_Close";
onButtonClick = "closeDialog 0;";
x = -0.06 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.51 + (1 / 50);
w = (6.25 / 40);
h = (1 / 25);
};
};
};
Alles anzeigen
description.ext
C
#include "infiSTAR_AdminMenu.hpp"
disableChannels[]={0,1,2};
#include "Config_Spyglass.hpp"
#include "CfgRemoteExec.hpp"
#include "dialog\MasterHandler.hpp"
#include "Config_Master.hpp"
class CfgServer {
DatabaseName = "altislife"; //Config name that'll be grep in the extdb-conf.ini. Default: [altislife]
DebugMode = 0; //Enable many server/hc debugging logs. Default: 0 (1 = Enabled / 0 = Disabled)
HeadlessSupport = 0; //Enable/Disable Headless client support. Default: 1 (1 = Enabled / 0 = Disabled)
/*
Enabled: When HeadlessSupport is set to 1 (enabled), the server will run without fault when no Headless Client is connected. However, it will support the Headless Client if you choose to connect one.
Disabled: If HeadlessSupport is set to 0 (disabled), the connection of a Headless Client will make no difference. This option will increase server performance a TINY but negligible amount.
*/
};
class RscTitles {
#include "dialog\progress.hpp"
#include "dialog\hud_nameTags.hpp"
#include "dialog\hud_stats.hpp"
};
class CfgFunctions {
#include "Functions.hpp"
};
class CfgSounds {
sounds[] = {};
class SirenLong {
name = "SirenLong";
sound[] = {"\sounds\Siren_Long.ogg", 1.0, 1};
titles[] = {};
};
class SirenLong {
name = "SirenLong";
sound[] = {"\sounds\Siren_Speech.ogg", 1.0, 1};
titles[] = {};
};
class medicSiren {
name = "medicSiren";
sound[] = {"\sounds\medic_siren.ogg", 1.0, 1};
titles[] = {};
};
class tazersound {
name = "Tazersound";
sound[] = {"\sounds\tazer.ogg", 0.25, 1};
titles[] = {};
};
class flashbang {
name = "flashbang";
sound[] = {"\sounds\flashbang.ogg", 1.0, 1};
titles[] = {};
};
class mining {
name = "mining";
sound[] = {"\sounds\mining.ogg", 1.0, 1};
titles[] = {};
};
class harvest {
name = "harvest";
sound[] = {"\sounds\harvest.ogg", 1.0, 1};
titles[] = {};
};
class LockCarSound {
name = "LockCarSound";
sound[] = {"\sounds\car_lock.ogg", 0.25, 1};
titles[] = {};
};
class UnlockCarSound {
name = "UnlockCarSound";
sound[] = {"\sounds\unlock.ogg", 0.25, 1};
titles[] = {};
};
class CarAlarm {
name = "CarAlarm";
sound[] = {"\sounds\caralarm.ogg", 0.25, 1};
titles[] = {};
};
};
class CfgDebriefing {
class NotWhitelisted {
title = "$STR_NotWhitelisted_Title";
subtitle = "$STR_NotWhitelisted_SubTitle";
description = "$STR_NotWhitelisted_Descript";
pictureBackground = "";
picture = "";
pictureColor[] = {0,0.3,0.6,1};
};
class Blacklisted {
title = "$STR_Blacklisted_Title";
subtitle = "$STR_Blacklisted_SubTitle";
description = "$STR_Blacklisted_Descript";
pictureBackground = "";
picture = "";
pictureColor[] = {0,0.3,0.6,1};
};
class SpyGlass {
title = $STR_SpyDetect_Title;
subTitle = $STR_SpyDetect_SubTitle;
description = $STR_SpyDetect_Descript;
pictureBackground = "";
picture = "";
pictureColor[] = {0,0.3,0.6,1};
};
};
class CfgNotifications {
class MedicalRequestEmerg {
title = "$STR_MedicalRequestEmerg_Title";
iconPicture = "\A3\ui_f\data\map\mapcontrol\taskIcon_ca.paa";
description = "%1";
duration = 5;
priority = 7;
};
class DeliveryAssigned {
title = "$STR_DeliveryAssigned_Title";
iconPicture = "\A3\ui_f\data\map\mapcontrol\taskIcon_ca.paa";
description = "%1";
duration = 10;
priority = 7;
};
class DeliveryFailed {
title = "$STR_DeliveryFailed_Title";
iconPicture = "\A3\ui_f\data\map\mapcontrol\taskiconfailed_ca.paa";
description = "%1";
duration = 7;
priority = 7;
};
class DeliverySucceeded {
title = "$STR_DeliverySucceeded_Title";
iconPicture = "\A3\ui_f\data\map\mapcontrol\taskIcondone_ca.paa";
description = "%1";
duration = 6;
priority = 6;
};
class TextMessage {
title = "$STR_TextMessage_Title";
iconPicture = "icons\ico_messageNew.paa";
description = "%1";
duration = 10;
priority = 6;
};
class PoliceDispatch {
title = "$STR_PoliceDispatch_Title";
iconPicture = "icons\ico_messagePolice.paa";
description = "%1";
duration = 10;
priority = 6;
};
class AdminDispatch {
title = "$STR_AdminDispatch_Title";
iconPicture = "icons\ico_messageAdmin.paa";
description = "%1";
duration = 10;
priority = 6;
};
class AdminMessage {
title = "$STR_AdminMessage_Title";
iconPicture = "icons\ico_messageAdmin.paa";
description = "%1";
duration = 10;
priority = 5;
};
class PolizeiRundfunk {
title = "Polizei Rundfunk";
iconPicture = "icons\ico_messagePolice.paa"; //Icon kann geändert werden, kein Icon = leere ""
description = "%1";
duration = 10;
priority = 5;
};
};
Alles anzeigen
Die restlichen Dateien hängen im Anhang. Ich habe einfach alles da reinkopiert wo es hin muss. Wäre nett wenn sich das mal jemand anschaut.
Danke im voraus.
Mit freundlichen Grüßen
Dukes