Moin undzwar hab ich die Admin Nachricht an Alle umgeschrieben zur Polizei Nachricht an alle. Alles schön und gut der Button ist da und ich kann die Nachricht auch versenden aber da kommt dann immernoch Adminnachricht.. Weiss jemand wie ich das ändern kann? Mfg Morris

Polizei Meldung an alle
-
morris123 -
4. Mai 2016 um 18:16 -
Geschlossen
-
-
Auf welcher Version denn?
-
3.1.4.8
-
Kannst du mal bitte die cell_phone.hpp und fn_cellphone.sqf offen legen?
-
cell_phone.hpp:
Spoiler anzeigen
class Life_cell_phone {
idd = 3000;
name= "life_cell_phone";
movingEnable = false;
enableSimulation = true;
onLoad = "[] spawn life_fnc_cellphone";
class controlsBackground {
class EXphone : Life_RscPicture
{
idc = 3001;
text = "textures\phone.paa";
x = 0.384999;
y = -0.00433818;
w = 0.8125;
h = 1.03676;
};
};
class controls {
class TextToSend : Life_RscTitle
{
colorBackground[] = {0, 0, 0, 0};
idc = 3002;
text = "$STR_CELL_TextToSend";
x = 0.605607;
y = 0.210809;
w = 0.2725;
h = 0.04;
};
class textEdit : Life_RscEdit
{
idc = 3003;
text = "";
x = 0.607904; y = 0.340086;
w = 0.325; h = 0.26;
};
class TextMsgButton : life_RscButtonMenu
{
idc = 3015;
text = "Senden";
colorBackground[] = {0,0.6,0.2,0.7};
onButtonClick = "[] call TON_fnc_cell_textmsg";
colorActive[] = {0,0,0,0};
x = 0.6125;
y = 0.64;
w = 0.15;
h = 0.05;
};
class PlayerList : Life_RscCombo
{
idc = 3004;
x = 0.6125; y = 0.28;
w = 0.2375; h = 0.04;
};
class TextCopButton : life_RscButtonMenu
{
idc = 3016;
text = "An Polizei";
colorBackground[] = {0,0.23,1,0.48};
onButtonClick = "[] call TON_fnc_cell_textcop";
x = 0.775;
y = 0.64;
w = 0.15;
h = 0.05;
};
class TextAdminButton : life_RscButtonMenu
{
idc = 3017;
text = "An Admin";
colorBackground[] = {0,0.23,1,0.48};
onButtonClick = "[] call TON_fnc_cell_textadmin";
x = 0.775;
y = 0.72;
w = 0.15;
h = 0.05;
};
class AdminMsgButton : life_RscButtonMenu
{
idc = 3020;
text = "Adm.Nachr.";
colorBackground[] = {0,0.23,1,0.48};
onButtonClick = "[] call TON_fnc_cell_adminmsg";
x = 0.775;
y = 0.8;
w = 0.15;
h = 0.05;
};
class AdminMsgAllButton : life_RscButtonMenu
{
idc = 3021;
text = "Adm.alle";
colorBackground[] = {0,0.23,1,0.48};
onButtonClick = "[] call TON_fnc_cell_adminmsgall";
x = 0.775;
y = 0.86;
w = 0.15;
h = 0.05;
};
class EMSRequest : life_RscButtonMenu
{
idc = 3022;
text = "An Arzt";
colorBackground[] = {0,0.23,1,0.48};
onButtonClick = "[] call TON_fnc_cell_emsrequest";
x = 0.6125;
y = 0.72;
w = 0.15;
h = 0.05;
};
class CopMsgAllButton : life_RscButtonMenu
{
idc = 3024;
text = "Polizeimeldung";
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_copmsgall";
x = 0.6125;
y = 0.8;
w = 0.15;
h = 0.05;
};
class CloseButtonKey : Life_RscButtonInvisible {
idc = -1;
text = "";
onButtonClick = "closeDialog 0;";
colorBackground[] = {0,0,0,0};
x = 0.73;
y = 0.95;
w = 0.08;
h = 0.035;
};
};
};fn_cellphone.sqf:
Spoiler anzeigen
#include <macro.h>
/*
File: fn_cellphone.sqf
Author: Alan
Description:
Opens the cellphone menu?
*/
private["_display","_units","_type"];disableSerialization;
waitUntil {!isNull findDisplay 3000};
_display = findDisplay 3000;
_units = _display displayCtrl 3004;ctrlSetText [3003, ""];
lbClear _units;if((__GETC__(life_adminlevel) < 1)) then
{
ctrlShow[3020,false];
ctrlShow[3021,false];
};if((__GETC__(life_coplevel) < 1)) then
{
ctrlShow[888800,false];
};{
if(alive _x && _x != player) then
{
switch (side _x) do
{
case west: {_type = "Cop"};
case civilian: {_type = "Civ"};
case independent: {_type = "Med"};
case east: {_type = "ASF"};
};
_units lbAdd format["%1 (%2)",_x getVariable["realname",name _x],_type];
_units lbSetData [(lbSize _units)-1,str(_x)];
};
} foreach playableUnits;lbSetCurSel [3004,0];
if((call life_coplevel) < 1) then
{
ctrlShow[3024,false];
}; -
Ich hab leider eins vergessen bitte die fn_newMsg.sqf nochmal dazu
-
nox
25. März 2023 um 00:47 Hat das Thema aus dem Forum Hilfeforum - ArmA 3 nach Archiv verschoben.