Jump to content
GhostsBR

[Release] Robbery Annoucement

Recommended Posts

Author: GhostsBR
Description: This is a script to send robbery message, very mutch popular in brazilian servers, sorry for my bad english and for my bad traduction.

Difficulty: easy

1. Select your file language and make download.

2. Open/Create a folder called Scripts and drag the fn_anuncio.sqf and fn_openanuncio.sqf into it.

3. Go to main folder functions.hpp and paste this:

class scripts {
        file = "scripts";
        class anuncio {};
        class openanuncio {};
    };

4. In main folder stringtable.xml paste this:

        <Key ID="STR_NOTF_anuncio">
            <Original>%2 sent the announcement for %1</Original>
            <Portuguese>%2 fez um anuncio para %1</Portuguese>
        </Key>
		<Key ID="STR_menu_anuncio">
            <Original>Announcement Menu</Original>
            <Portuguese>Menu de Anuncios</Portuguese>
        </Key>
		<Key ID="STR_pessoa_anuncio">
            <Original>Announces Person</Original>
            <Portuguese>Anunciar Pessoa</Portuguese>
        </Key>
		<Key ID="STR_veiculo_anuncio">
            <Original>Announces Vehicle</Original>
            <Portuguese>Anunciar Veiculo</Portuguese>
        </Key>
		<Key ID="STR_afastar_anuncio">
            <Original>Announces Get Out</Original>
            <Portuguese>Anunciar Sair</Portuguese>
        </Key>

5. Go to core/functions/fn_keyHandler.sqf and place this into:

//TAB
    case 15: {
        if (cursorTarget distance player < 60 && {(isPlayer cursorTarget)}) then 
		{	
		[] call life_fnc_openanuncio;
		} else {
        hint "You need to be within 60 meters of your victim!";
		};
    };

6. Go to dialog and place the anuncio.hpp into this folder.

7. In dialog open MasterHandler.hpp and paste this into:

#include "anuncio.hpp"

 

 

 

PT-BR.rar

EN-US.rar

Edited by GhostsBR
  • Like 2

Share this post


Link to post
Share on other sites
10 minutes ago, ★CT Da Mirage | RoberioJR said:

Are you sure that you are the author of this script?

As far as I know the author of this script is Casperento. You just changed the names of the files and put the credit for you.

Are you able to provide comparison between the files? 

  • Like 1

Share this post


Link to post
Share on other sites

Put This Case In fn_KeyHandler.sqf

ps: Se Tu For Brasileiro Eu Posso Ajudar Se Vc Entrar No Discord: https://discord.gg/ccKVqF

case 15: {
        if (cursorTarget distance player < 60 && {(isPlayer cursorTarget)}) then 
		{	
		[] call life_fnc_openanuncio;
		} else {
        hint "You need to be within 60 meters of your victim!";
		};
    };
Edited by ★CT Da Mirage | RoberioJR

Share this post


Link to post
Share on other sites

I was able to install more I'm having a problem the player who sent the warning he is not receiving the message.

whats wrong?

 

I'll be putting down the (RPT) server and player.

NOTE: I have a script with an error and I have not yet put the activation key

player.rpt

server.rpt

Edited by FabioSICasper
I forgot the files

Share this post


Link to post
Share on other sites
10 hours ago, FabioSICasper said:

I was able to install more I'm having a problem the player who sent the warning he is not receiving the message.

whats wrong?

 

I'll be putting down the (RPT) server and player.

NOTE: I have a script with an error and I have not yet put the activation key

player.rpt

server.rpt

Warning Message: File mpmissions\altis_life.Altis\The-Programmer\WhitelistMenu\functions.cpp, line 11: /CfgFunctions.functions: Member already defined.
Warning Message: File mpmissions\altis_life.Altis\The-Programmer\EntreprisesMarkers\functions.cpp, line 4: /CfgFunctions.functions: Member already defined.
Warning Message: File mpmissions\altis_life.Altis\The-Programmer\Fourriere\functions.cpp, line 6: /CfgFunctions.functions: Member already defined.
Warning Message: File mpmissions\altis_life.Altis\The-Programmer\WhitelistMenu\functions.cpp, line 11: /CfgFunctions.functions: Member already defined.
Warning Message: File mpmissions\altis_life.Altis\The-Programmer\EntreprisesMarkers\functions.cpp, line 4: /CfgFunctions.functions: Member already defined.

Error in expression <Config","Repair_Job_Localization"] call theprogrammer_core_fnc_localize),The_Pro>
  Error position: <theprogrammer_core_fnc_localize),The_Pro>
  Error Undefined variable in expression: theprogrammer_core_fnc_localize
File mpmissions\altis_life.Altis\The-Programmer\RepairJob\init.sqf, line 6

 

Scripting function 'max_phone_fnc_cellphonerequest' is not allowed to be remotely executed

 

14:06:02 Error in expression <erInput true;
showChat false;
hint "";
[LIFE_ID_PlayerTags,"onEachFrame"] spawn >
14:06:02   Error position: <LIFE_ID_PlayerTags,"onEachFrame"] spawn >
14:06:02   Error Variável indefinida na expressão: life_id_playertags
14:06:02 File core\functions\fn_loggedOut.sqf [life_fnc_loggedOut], line 63

 

14:04:04 Error in expression <hone_fnc_cellPhoneRequest",2];
[] spawn theprogrammer_core_fnc_clientInit;
>
14:04:04   Error position: <theprogrammer_core_fnc_clientInit;
>
14:04:04   Error Variável indefinida na expressão: theprogrammer_core_fnc_clientinit
14:04:04 File mpmissions\__CUR_MP.Altis\core\init.sqf, line 177

 

14:00:53 Error in expression <Config","Repair_Job_Localization"] call theprogrammer_core_fnc_localize),The_Pro>
14:00:53   Error position: <theprogrammer_core_fnc_localize),The_Pro>
14:00:53   Error Variável indefinida na expressão: theprogrammer_core_fnc_localize
14:00:53 File mpmissions\__CUR_MP.Altis\The-Programmer\RepairJob\init.sqf, line 6

Share this post


Link to post
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.


×
×
  • Create New...

Important Information

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