Hätte eine kleine Frage an euch weiß jemand wie man ein eigenes Z-Menü bzw Tablet oder Smartphone machen kann wie bei manchen Scripts wenn man ins Z-Mü geht das das dann ein Tablet ist weiß jemand wie das geht?
Bedanke mich im voraus
MfG. Leon
Hätte eine kleine Frage an euch weiß jemand wie man ein eigenes Z-Menü bzw Tablet oder Smartphone machen kann wie bei manchen Scripts wenn man ins Z-Mü geht das das dann ein Tablet ist weiß jemand wie das geht?
Bedanke mich im voraus
MfG. Leon
kannst du mit dem gui editor machen
Ok kannst du mir ein Link oder vielleicht ein keliens Tutrial dafür machen.
Währe nett.
Danke im voraus.
MfG. Leon
Hier wird es ganz gut erklärt :
@Mahony Kannst du sowas weil wen ja währe es cool wenn du mir vielleciht dabei mal helfen könntest melde dich einfach mal.
Danke im voraus.
MfG. Leon
Joa kommt drauf an was du genau machen möchtest
Ok bist du gerade auf einen TS oder kannst du kurz auf NAtive-Gamer TS kommen?
Ich komme morgen sry hab ich zu spät gesehen
Ok passt kannst du jetzt pls mal on kommen auf TS
#include "player_sys.sqf"
class playerSettings {
idd = playersys_DIALOG;
movingEnable = true;
enableSimulation = true;
class controlsBackground {
class life_RscTitleBackground:life_RscText {
idc = -1;
x = 0;
y = 0;
w = 1;
h = 0.04;
colorBackground[] = {0,0,0,0.9};
};
class logo: life_RscPicture
{
idc = 1201;
text = "textures/Logo2.paa";
x = 0.05;
y = 0.68;
w = 0.2;
h = 0.24;
};
class life_RscTitleBackgroundRechts:life_RscText {
idc = -1;
x = 0.975;
y = 0;
w = 0.025;
h = 1;
colorBackground[] = {0,0,0,0.9};
};
class life_RscTitleBackgroundLinks:life_RscText {
idc = -1;
x = 5.58794e-009;
y = 0;
w = 0.025;
h = 1;
colorBackground[] = {0,0,0,0.9};
};
class life_RscTitleBackgroundUnten:life_RscText {
idc = -1;
x = 0;
y = 0.96;
w = 1;
h = 0.04;
colorBackground[] = {0,0,0,0.9};
};
class MainBackground:life_RscText {
idc = -1;
x = 0;
y = 0;
w = 1;
h = 1;
colorBackground[] = {0,0,0,0.7};
};
class Title : life_RscTitle {
idc = -1;
text = "$STR_PM_Title";
x = 0.025;
y = 0;
w = 0.95;
h = 0.04;
colorBackground[] = {0,0,0,0};
};
class moneyStatusInfo : Life_RscStructuredText
{
idc = 2015;
sizeEx = 0.020;
text = "";
x = 0.05;
y = 0.16;
w = 0.2;
h = 0.12;
};
class PlayersName : Title {
idc = carry_weight;
style = 1;
text = "";
};
};
class controls {
class itemHeader : Life_RscText
{
idc = -1;
text = "$STR_PM_cItems";
sizeEx = 0.04;
x = 0.6;
y = 0.08;
w = 0.35;
h = 0.04;
colorBackground[] = {0,0,0,0.9};
};
class licenseHeader : Life_RscText
{
idc = -1;
text = "$STR_PM_Licenses";
sizeEx = 0.04;
x = 0.275;
y = 0.08;
w = 0.3;
h = 0.04;
colorBackground[] = {0,0,0,0.9};
};
class moneySHeader : Life_RscText
{
idc = -1;
text = "$STR_PM_MoneyStats";
sizeEx = 0.04;
x = 0.05;
y = 0.08;
w = 0.2;
h = 0.04;
colorBackground[] = {0,0,0,0.9};
};
class itemList : life_RscListBox
{
idc = item_list;
sizeEx = 0.030;
x = 0.6;
y = 0.16;
w = 0.35;
h = 0.56;
};
class moneyEdit : Life_RscEdit
{
idc = 2018;
text = "1";
sizeEx = 0.030;
x = 0.05;
y = 0.4;
w = 0.2;
h = 0.04;
};
class NearPlayers : Life_RscCombo
{
idc = 2022;
x = 0.05;
y = 0.32;
w = 0.2;
h = 0.04;
};
class moneyDrop : Life_RscButtonMenu
{
idc = 2001;
text = "$STR_Global_Give";
onButtonClick = "[] call life_fnc_giveMoney";
sizeEx = 0.025;
x = 0.05;
y = 0.48;
w = 0.2;
h = 0.04;
};
class itemEdit : Life_RscEdit {
idc = item_edit;
text = "1";
sizeEx = 0.030;
x = 0.6;
y = 0.78;
w = 0.35;
h = 0.04;
};
class iNearPlayers : Life_RscCombo
{
idc = 2023;
x = 0.6;
y = 0.72;
w = 0.35;
h = 0.04;
};
/*
Disabled till it can be redone
class moneyInput: life_RscCombo {
idc = money_value;
x = 0.02; y = 0.402;
w = .1; h = .030;
};
*/
class DropButton : life_RscButtonMenu {
idc = 2002;
text = "$STR_Global_Give";
onButtonClick = "[] call life_fnc_giveItem;";
x = 0.7875;
y = 0.84;
w = 0.1625;
h = 0.04;
};
class UseButton : life_RscButtonMenu {
text = "$STR_Global_Use";
onButtonClick = "[] call life_fnc_useItem;";
x = 0.6;
y = 0.84;
w = 0.1625;
h = 0.04;
};
class buttonCall: Life_RscButtonMenu
{
idc = 2406;
text = "$STR_PM_CellPhone";
x = 0.7875;
y = 0.9;
w = 0.1625;
h = 0.04;
onButtonClick = "[] call life_fnc_cellphone2;";
};
class RemoveButton : life_RscButtonMenu {
text = "$STR_Global_Remove";
onButtonClick = "[] call life_fnc_removeItem;";
x = 0.6;
y = 0.9;
w = 0.1625;
h = 0.04;
};
class Licenses_Menu : Life_RscControlsGroup
{
idc = -1
x = 0.275;
y = 0.12;
w = 0.3;
h = 0.82;
class Controls
{
class Life_Licenses : Life_RscStructuredText
{
idc = 2014;
sizeEx = 0.020;
text = "";
x = 0;
y = 0;
w = 0.3; h = 0.78;
};
};
};
class 9: Life_RscButtonMenu
{
idc = 2403;
text = "Regeln"; //--- ToDo: Localize;
onButtonClick = "createDialog ""life_rules_main"";";
x = -0.275;
y = 0.64;
w = 0.25;
h = 0.12;
};
class 13: Life_RscButtonMenu
{
idc = 2405;
text = "$STR_Global_Settings";
onButtonClick = "[] call life_fnc_settingsMenu;";
x = -0.275;
y = 0;
w = 0.25;
h = 0.12;
};
class 6: Life_RscButtonMenu
{
idc = 2409;
text = "$STR_PM_SyncData";
onButtonClick = "[] call SOCK_fnc_syncData;";
x = -0.275;
y = 0.32;
w = 0.25;
h = 0.12;
};
class 4: Life_RscButtonMenu
{
idc = 2418;
text = "$STR_PM_MyGang";
onButtonClick = "if(isNil ""life_action_gangInUse"") then {if(isNil {(group player) getVariable ""gang_owner""}) then {createDialog ""Life_Create_Gang_Diag"";} else {[] spawn life_fnc_gangMenu;};};";
x = -0.275;
y = 0.16;
w = 0.25;
h = 0.12;
};
class 7: Life_RscButtonMenu
{
idc = 2419;
text = "$STR_PM_KeyChain";
onButtonClick = "createDialog ""Life_key_management"";";
x = -0.275;
y = 0.48;
w = 0.25;
h = 0.12;
};
class buttonCop1: Life_RscButtonMenu
{
idc = 2421;
text = "Wanted +";
onButtonClick = "createDialog ""life_wantedadd2"";";
x = 1.025;
y = 0.16;
w = 0.25;
h = 0.12;
};
class buttonCop2: Life_RscButtonMenu
{
idc = 2422;
text = "$STR_PM_WantedList";
onButtonClick = "[] call life_fnc_wantedMenu";
x = 1.025;
y = 0;
w = 0.25;
h = 0.12;
};
class buttonAdmin: Life_RscButtonMenu
{
idc = 2423;
text = "$STR_PM_AdminMenu";
onButtonClick = "createDialog ""life_admin_menu"";";
x = 1.025;
y = 0.32;
w = 0.25;
h = 0.12;
};
class buttonRefresh: Life_RscButtonMenu
{
idc = 24999;
text = "Umgebung Update";
onButtonClick = "[] call life_fnc_p_updateMenu";
x = 1.025;
y = 0.46;
w = 0.40;
h = 0.12;
};
class buttonDownload: Life_RscButtonMenu
{
idc = 249949;
text = "Info";
onButtonClick = "createDialog ""RscDisplayWelcome"";";
x = 1.025;
y = 0.60;
w = 0.40;
h = 0.12;
};
class buttonClose: Life_RscButtonMenu
{
idc = 2405;
text = "Schließen"; //--- ToDo: Localize;
onButtonClick = "closeDialog 0;";
x = -0.275;
y = 0.8;
w = 0.25;
h = 0.2;
};
};
};
Alles anzeigen
hier mein altes ist aber nicht fertig!
Einfach die Player_inv.hpp ersetzen.
Ok thx
Würdest du es vielleicht noch ein bisschen fertig machen?
Danke im voraus
MfG. Leon
@Cube poste doch mal die bilder die du im Hintergrund haben möchtest und die die du als Buttons haben möchtest
Ja werde mich nachher mal ran setzen
Werd bald unser Tablet veröffentlichen sobald die Native-Gamer Missionsdatei fertig ist
Gib mir ne Minute ich suchs fix raus
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Scheduler>
<job id="0">
<day>1,2,3,4,5,6,7</day>
<start>05:30:00</start>
<runtime>000020</runtime>
<loop>0</loop>
<cmd>say -1 Server startet in 30 Minuten neu!</cmd>
</job>
<job id="1">
<day>1,2,3,4,5,6,7</day>
<start>05:45:00</start>
<runtime>000020</runtime>
<loop>0</loop>
<cmd>say -1 Server startet in 15 Minuten neu!</cmd>
</job>
<job id="2">
<day>1,2,3,4,5,6,7</day>
<start>05:59:00</start>
<runtime>000020</runtime>
<loop>0</loop>
<cmd>say -1 Server startet in einer Minute neu!</cmd>
</job>
<job id="3">
<day>1,2,3,4,5,6,7</day>
<start>00:00:00</start>
<runtime>000020</runtime>
<loop>0</loop>
<cmd>stopserver.bat</cmd>
</job>
<job id="4">
<day>1,2,3,4,5,6,7</day>
<start>11:30:00</start>
<runtime>000020</runtime>
<loop>0</loop>
<cmd>say -1 Server startet in 30 Minuten neu!</cmd>
</job>
<job id="5">
<day>1,2,3,4,5,6,7</day>
<start>11:45:00</start>
<runtime>000020</runtime>
<loop>0</loop>
<cmd>say -1 Server startet in 15 Minuten neu!</cmd>
</job>
<job id="6">
<day>1,2,3,4,5,6,7</day>
<start>11:59:00</start>
<runtime>000020</runtime>
<loop>0</loop>
<cmd>say -1 Server startet in einer Minute neu!</cmd>
</job>
<job id="7">
<day>1,2,3,4,5,6,7</day>
<start>12:00:00</start>
<runtime>000020</runtime>
<loop>0</loop>
<cmd>stopserver.bat</cmd>
</job>
<job id="8">
<day>1,2,3,4,5,6,7</day>
<start>17:30:00</start>
<runtime>000020</runtime>
<loop>0</loop>
<cmd>say -1 Server startet in 30 Minuten neu!</cmd>
</job>
<job id="9">
<day>1,2,3,4,5,6,7</day>
<start>17:45:00</start>
<runtime>000020</runtime>
<loop>0</loop>
<cmd>say -1 Server startet in 15 Minuten neu!</cmd>
</job>
<job id="10">
<day>1,2,3,4,5,6,7</day>
<start>17:59:00</start>
<runtime>000020</runtime>
<loop>0</loop>
<cmd>say -1 Server startet in einer Minute neu!</cmd>
</job>
<job id="11">
<day>1,2,3,4,5,6,7</day>
<start>18:00:00</start>
<runtime>000020</runtime>
<loop>0</loop>
<cmd>stopserver.bat</cmd>
</job>
<job id="12">
<day>1,2,3,4,5,6,7</day>
<start>23:30:00</start>
<runtime>000020</runtime>
<loop>0</loop>
<cmd>say -1 Server startet in 30 Minuten neu!</cmd>
</job>
<job id="13">
<day>1,2,3,4,5,6,7</day>
<start>23:45:00</start>
<runtime>000020</runtime>
<loop>0</loop>
<cmd>say -1 Server startet in 15 Minuten neu!</cmd>
</job>
<job id="14">
<day>1,2,3,4,5,6,7</day>
<start>23:59:00</start>
<runtime>000020</runtime>
<loop>0</loop>
<cmd>say -1 Server startet in einer Minute neu!</cmd>
</job>
<job id="15">
<day>1,2,3,4,5,6,7</day>
<start>00:00:00</start>
<runtime>000020</runtime>
<loop>0</loop>
<cmd>stopserver.bat</cmd>
</job>
</Scheduler>
Alles anzeigen
Führt alle 6 Stunden eine BAT Datei aus welche den Server killt. Die solltest du natürlich erstellen
nox, falsches Thema