Jump to content

CubeX
 Share

Recommended Posts

web_logo02.thumb.png.2a912100be09c3bb6b604e2a9231cd63.png   By: CubeX Designs

*FOR VERSION 5.0*

Difficulty: Medium

1. Preview

2. Installation

3. FAQ

 

1| Preview:

 

Spoiler

CubePhone.thumb.png.f077ff8e32822af26b9118f6f2656083.pngpreview.thumb.png.bbcd045fdc79ab13cf5123525687ff85.png5b59f4322fc0b_TRANSFERMONEY.thumb.png.1390550dc86f036a3bf0390652fc7991.png

 

2| Installation:

 

1: Go to your description.ext and find this line:

#include "config\Config_Master.hpp"


Below that line add this code:

#include "CBX\CBXDialogHandler.hpp"

 

2: Go to your CfgRemoteExec.hpp and find this line: jip = 0;
Below that line add this code:

#include "CBX\CBXCfgRemoteExec.hpp"


3: Copy all of the files from core\pmenu in our zip file and replace them with the ones in yourmission\core\pmenu.

4: Copy the folder CBX to your mission root folder.

5:  Copy the folder @CBX to your arma 3 server root folder.

6Go to your life_server.pbo and edit the file functions.sqf.
Between the function :
"TON_fnc_cell_emsrequest" to the function "TON_fnc_cell_adminmsgall" replace the content with this : 
 

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];
";
//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 2100 isEqualTo -1) exitWith {hint localize ""STR_CELLMSG_SelectPerson""; ctrlShow[2401,true];};

   _to = call compile format [""%1"",(lbData[2100,(lbCurSel 2100)])];
   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];
";
//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];
";

 

7:  Go to core\functions\fn_keyHandler.sqf and find this line:

case 21: {


Below that you will see this line:

[] call life_fnc_p_openMenu;


Replace this line with this line:

[] spawn CBX_fnc_openPhone;

 

8:  To make it work you have to set it as a mod in your server startup parameters. Like that :
[email protected];@life_server;heli;jets;kart;mark;@CBX”

 

FINAL: DOWNLOAD ZIP (CLICK)

PHONE WALLPAPER PSD FILE

ICONS PSD FILE (CLICK)

 

Credit: Coded By Beast, Designed By CubeX

For AltisLifeRPG

 

3| FAQ:

Q: Who made this amazing thing? xD.

A: CubeX Designs.

Q: Is It Free?.

A: Like Dhaa?!.

Q: Can I change stuff and edit the PSD file?.

A: Yes! you can change everything you want In the PSD file.

Q: Why the wallpaper psd file size is so big?.

A: because the Images size I used is 4K and the size I created the wallpaper is 2048x2048 sorry xD.

Q: Will you add more screens (menus) to the phone? (like admin menu and wanted).

A: Maybe but we do not guarantee anything.

 

Please Let Us Know If You Have Any Problems With The Phone, We Will Update It For Fixes.

 

 

Icons made by:

Gregor Cresnar
Freepik
Plainicon
Yannick
Egor Rumyantsev

from www.flaticon.com

 

p.s- please do not share this post in other forums without my permission.

thanks :)

Edited by CuBeX
fix1
  • Like 9
  • Thanks 1
Link to comment
Share on other sites

between the function TON_fnc_cell_emsrequest and the function TON_fnc_cell_adminmsgall replace the lines between them with this : 

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];
";
//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 2100 isEqualTo -1) exitWith {hint localize ""STR_CELLMSG_SelectPerson""; ctrlShow[2401,true];};

   _to = call compile format [""%1"",(lbData[2100,(lbCurSel 2100)])];
   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];
";
//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];
";

the whole file should look like that : https://pastebin.com/uu59esv2

Link to comment
Share on other sites

Attempt to override final function - bis_fnc_storeparamsvalues_data
"[bin\config.bin/CfgFunctions/CBX_PhoneMenu_Functions/CBX_PhoneMenu_CFunctions/openPhone,bin\config.bin/CfgFunctions/CBX_PhoneMenu_Functions/CBX_PhoneMenu_CFunctions/openPhoneMenu,bin\config.bin/CfgFunctions/CBX_PhoneMenu_Functions/CBX_PhoneMenu_CFunctions/inventoryMenu,bin\config.bin/CfgFunctions/CBX_PhoneMenu_Functions/CBX_PhoneMenu_CFunctions/licensesMenu,bin\config.bin/CfgFunctions/CBX_PhoneMenu_Functions/CBX_PhoneMenu_CFunctions/openBankStatus]"
"CBX_fnc_openPhone"
"CBX_fnc_openPhoneMenu"
"CBX_fnc_inventoryMenu"
"CBX_fnc_licensesMenu"
"CBX_fnc_openBankStatus"
"extDB3: Error with Database Connection"

 

 

 

this is what it gives me in my logs

Link to comment
Share on other sites

4 minutes ago, BoGuu said:

Perfect.

I assume you have the premium thing?

I'm just thinking about attribution for people using this

Edit: There does seem to be a no redistribution clause though

you confused me? can you write in simple words? 

sorry xD english is not my main

Edited by CuBeX
Link to comment
Share on other sites

1 hour ago, BoGuu said:

Did you see the screenshot I posted?

It seems that if you're not a paid user, you are required to attribute flaticon, and are not allowed to redistribute them.

By doing this, one might assume both yourself, and anyone downloading this, is doing so illegally, breaching IP.

Mmm.. Idk man.. I got the regular account but I will be honest, do they really going to have a problem if I used this icons on a in game stuff?.. Idk..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.