English Not solved How to create a power button for iPhoneX

  • 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 !

JakobRabe

User
26/5/20
1
0
100
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 pour voir le code !

Here is an example of a Life_Checkbox with the variable :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
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 pour voir le code !
and add below :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !

And in your @The_Programmer/addons/advanced_phone/client/fn_sendCall.sqf, find :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
and add below :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !

You just have to correctly place the CheckBox in the dialog and it should work :)
 
Activité
Pour l'instant, il n'y a personne ici