The-Programmer Forum

Maxence a écrit le dernier message :
#2
Hello ! It's a lot of changes, but ok 😅

In your mission/The-Programmer/Iphone_XI/dialogs/phone_system/messages/sendMessage.hpp, below this button :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
you can add this new button with its icon :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !


In your @The_Programmer/addons/iphone_xi/client/phone_system/messages/fn_phone_newMessageMenu.sqf, you can add at the end of the file :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
-> That will add the button for players in west side, not admins (because they already have the admin button at the same place).


In your @The_Programmer/addons/iphone_xi/client/phone_system/messages/fn_phoneSendMessage.sqf, below :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
you can add :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
-> Call the function to send the message to everyone.


In your @The_Programmer/addons/advanced_phone/client/fn_clientMessage.sqf, add in the switch :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
-> Display the message, you can change the texts here.


Note :
The texture of the button is the same as the button for the admin, it is thus written "ADMIN ALL" if you want to modify it, it is necessary to make a new texture in your mission/Iphone_XI/textures/menus/phone_system/messages/extra like the file adminButton.paa which you will be able to name policeButton.paa for example.
-> It will be necessary to modify in the fn_phone_newMessageMenu.sqf the name of the texture to put the new one.