English Solved Sending Messages to All Civilians as a Police Officer

Kevin

User
12/2/21
1
0
100
Hello,

I would like to add a button with which it is possible to write a message to all civilians as a police officer. I imagine that the message is sent and displayed in the same way as the admin message.
Changes for users:
  • Policemen have a new button in the Iphone
  • Display of the message like the admin message to all,
(a text from the stringtabel.xml should be displayed as sender, so it can be easily modified).

Does anyone have an idea how this can be implemented?

Alternatively to a button, the _toString can also be used as well as for the message to the admin.
Then there should be a button like Send to Admin, with which a recipient is entered.

Many thanks in advance for the help
 

Maxence

Admin
Membre du personnel
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.
 
Solution
Activité
Pour l'instant, il n'y a personne ici