Guten Abend / Nacht,
ich habe mir aus der Datenbank das Native Network Altis Life RPG 4.0 Pack heruntergeladen und nun versuche ich seit ein paar Stunden das standart Admin Menü ( Im Z Inventar ) wieder "einzubauen" . Leider klappt es nicht so.
Die Buttons sind zwar teilweise da aber funktionieren nicht richtig. Wenn ich z.b auf dem ganz rechten Button klicke in der obersten Zeile sollte ich eigentlich auf die Map kommen wo ich
mir dann aussuchen kann wo ich mich hinteleportieren möchte. Jedoch bekomme ich nur eine Meldung das ich mich Teleportieren kann und mehr nicht.
Hier mal ein Screen wie das Inventar aussieht:
#Entfernt durch Moderations, Dateianhang benutzen.
Wie man dort sieht sind die Buttons nicht ganz beschriftet.
Code vom admin_menu.hpp
class life_admin_menu {
idd = 2900;
name= "life_admin_menu";
movingEnable = false;
enableSimulation = true;
onLoad = "[] spawn life_fnc_adminMenu;";
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.8;
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.8;
h = 0.6 - (2 / 250);
};
};
class controls {
class Title : Life_RscTitle {
colorBackground[] = {0, 0, 0, 0};
idc = 2901;
text = "$STR_Admin_Title";
x = 0.1;
y = 0.2;
w = 0.6;
h = (1 / 25);
};
class PlayerList_Admin : Life_RscListBox
{
idc = 2902;
text = "";
sizeEx = 0.035;
//colorBackground[] = {0,0,0,0};
onLBSelChanged = "[_this] spawn life_fnc_adminQuery";
x = 0.12; y = 0.26;
w = 0.30; h = 0.4;
};
class PlayerBInfo : Life_RscStructuredText
{
idc = 2903;
text = "";
x = 0.42;
y = 0.25;
w = 0.35;
h = 0.6;
};
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.88 - (1 / 25);
w = (6.25 / 40);
h = (1 / 25);
};
class AdminID : Life_RscButtonMenu {
idc = -1;
text = "ID";
onButtonClick = "[] call life_fnc_admingetID;";
x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.88 - (1 / 25);
w = (6.25 / 40);
h = (1 / 25);
};
class Repair: Life_RscButtonMenu {
idc = -1;
text = "Repair Near";
onButtonClick = "[] call life_fnc_adminRepairBuild;";
x = 0.26 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.925;
w = (6.25 / 40);
h = (1 / 25);
};
class Ban: Life_RscButtonMenu {
idc = -1;
text = "Ban Player";
onButtonClick = "[] call life_fnc_adminBan;";
x = 0.42 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.925;
w = (6.25 / 40);
h = (1 / 25);
};
class Compensate : Life_RscButtonMenu {
idc = 2904;
text = "$STR_Admin_Compensate";
onButtonClick = "createDialog ""Life_Admin_Compensate"";";
x = 0.26 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.88 - (1 / 25);
w = (6.25 / 40);
h = (1 / 25);
};
class Spectate : Life_RscButtonMenu {
idc = 2905;
text = "$STR_Admin_Spectate";
onButtonClick = "[] call life_fnc_adminSpectate;";
x = 0.42 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.88 - (1 / 25);
w = (6.25 / 40);
h = (1 / 25);
};
class Teleport : Life_RscButtonMenu {
idc = 2906;
text = "$STR_Admin_Teleport";
onButtonClick = "[] call life_fnc_adminTeleport; hint 'Select where you would like to teleport';";
x = 0.58 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.88 - (1 / 25);
w = (6.25 / 40);
h = (1 / 25);
};
class TeleportHere : Life_RscButtonMenu {
idc = 2907;
text = "$STR_Admin_TpHere";
onButtonClick = "[] call life_fnc_adminTpHere;";
x = -0.06 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.885;
w = (6.25 / 40);
h = (1 / 25);
};
class God : Life_RscButtonMenu {
idc = 2908;
text = "$STR_Admin_God";
onButtonClick = "[] call life_fnc_adminGodMode;";
x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.885;
w = (6.25 / 40);
h = (1 / 25);
};
class Freeze : Life_RscButtonMenu {
idc = 2909;
text = "$STR_Admin_Freeze";
onButtonClick = "[] call life_fnc_adminFreeze;";
x = 0.26 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.885;
w = (6.25 / 40);
h = (1 / 25);
};
class Markers : Life_RscButtonMenu {
idc = 2910;
text = "$STR_Admin_Markers";
onButtonClick = "[] spawn life_fnc_adminMarkers;";
x = 0.42 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.885;
w = (6.25 / 40);
h = (1 / 25);
};
class Debug : Life_RscButtonMenu {
idc = 2911;
text = "$STR_Admin_Debug";
onButtonClick = "[] call life_fnc_adminDebugCon;";
ColorBackground[] = {1,0,0,1};
x = 0.58 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.885;
w = (6.25 / 40);
h = (1 / 25);
};
class Adminex : Life_RscButtonMenu {
idc = -1.;
text = "Erweitert";
onButtonClick = "[] execVM ""admin\script.sqf"";";
ColorBackground[] = {1,0,0,1};
x = -0.06 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.925;
w = (6.25 / 40);
h = (1 / 25);
};
};
};
Alles anzeigen
( Der Button mit dem Namen Erweitert funktioniert super ohne Probleme )
im core/admin Ordner sind alle Datein vorhanden ( Habe sie aus der 4.0 Standart Altis Life rauskopiert und nichts dran geändert ).
In der Function.h ist soweit auch alles eingetragen:
class Admin
{
file = "core\admin";
class admininfo {};
class adminid {};
class admingetID {};
class adminMenu {};
class adminQuery {};
class adminKick {};
class adminBan {};
class adminMenu_Extended {};
class adminQuery_Extended {};
class adminAddMoney {};
class adminSpawnVehicle {};
class adminAuthentificate {};
class adminCheckAuth {};
class admin_spectate {};
class adminTeleport {};
class adminTpHere {};
};
Alles anzeigen
Entweder ich habe irgendwo was vergessen oder ich weiß es nicht^^ Hat jemand eine Idee?