Not solved English Button to turn the iPhoneX off

  • Bonjour Visiteur ! Les sujets de cette catégorie sont clos. Si vous souhaitez réouvrir, merci de nous contacter en précisant le lien du post à réouvrir !

    Hello Visiteur ! The topics in this category are closed. If you wish to reopen, please contact us with the link of the post you wish to reopen !
Hello,

I want to Create a Button on the iPhoneX where you can Turn the Phone Off. When you have turned off no body can Phone you or Send Messages. Also when the Phone is Turned off the Buttons should not Shown that you still can use it when your Phone is On. When you press the button to turn on the Phone the Buttons should shown and you can phone and message normaly.

Someone can Help me?

LG
 

Maxence

Admin
Membre du personnel
Hello :)

There is many way to do that, but first you'll have to edit the dialog of the menu you want (.hpp files, for example in the settings) to add for example a Life_Checkbox control.
Then when this box is activated, you can set a variable, for example :
S’il vous plaît, Connexion ou S'inscrire to view codes content!

Here is an example of a Life_Checkbox with the variable :
S’il vous plaît, Connexion ou S'inscrire to view codes content!
WARNING : You'll have to put the position of it : x, y, w, h

Then to block incoming messages/calls, in your @The_Programmer/addons/advanced_phone/client/fn_sendMSG.sqf, find :
S’il vous plaît, Connexion ou S'inscrire to view codes content!
and add below :
S’il vous plaît, Connexion ou S'inscrire to view codes content!

And in your @The_Programmer/addons/advanced_phone/client/fn_sendCall.sqf, find :
S’il vous plaît, Connexion ou S'inscrire to view codes content!
and add below :
S’il vous plaît, Connexion ou S'inscrire to view codes content!

You just have to correctly place the CheckBox in the dialog and it should work :)