Jump to content

Private Trader Tutorial [Quick Simple Tutorial]


Navaeh

Recommended Posts

Just a simple little thing i had an idea for, and wanted to share it.
 
So first of all make a custom_traders.sqf file in this add:

customTraders = ["Skin1","Skin2"];

VIP = ["4567547","1243124"];

//PrivateTrader
if ((getPlayerUID player) in VIP) then {
menu_Skin1 = [
    [["Category1",123]],
    [],
    "neutral"
];
menu_Skin2 = [
    [["Category2",123]],
    [],
    "neutral"
];
};

Now navigate to your mission folders init.sqf, and right under:


call compile preprocessFileLineNumbers "server_traders.sqf";

Add:


call compile preprocessFileLineNumbers "YOURFOLDER\custom_traders.sqf";

So it should look something like this:

call compile preprocessFileLineNumbers "server_traders.sqf";
call compile preprocessFileLineNumbers "YOURFOLDER\custom_traders.sqf";

 
All done, dont forget to actually create a category and change the 123, with the category number.

This is my first post :)

Link to comment
Share on other sites

customTraders = ["YOURSKINHERE1","YOURSKINHERE2"];

Donator = ["4567547","1243124"];

//DonatorTrader
if ((getPlayerUID player) in Donator) then {
menu_YOURSKINHERE1 = [
    [["Category1",123]],
    [],
    "neutral"
];
menu_YOURSKINHERE2 = [
    [["Category2",234]],
    [],
    "neutral"
];
};


Skin of the trader from customTraders = ...

Dont get newbies in confusion :D

And u forgot at the end)

Anyway gj)

Link to comment
Share on other sites

customTraders = ["YOURSKINHERE1","YOURSKINHERE2"];

VIP = ["4567547","1243124"];

//PrivateTrader
if ((getPlayerUID player) in VIP) then {
menu_YOURSKINHERE1 = [
    [["Category1",123]],
    [],
    "neutral"
];
menu_YOURSKINHERE2 = [
    [["Category2",234]],
    [],
    "neutral"
];
};


Skin of the trader from customTraders = ...

Dont get newbies in confusion :D

And u forgot at the end)

Anyway gj)

 

opps thanks man i have changed that now 

Link to comment
Share on other sites

What the fuk is the difference From Donator Loadouts, Donator spawn Location, Donator Bank, Donator perks of any kind just about every server i see/played on have all these on offer selling scripts to selling the installation of scripts people dont like other people getting support for the servers they run.

 

People are not forced to donate... but there r perks if you do nice to give back to those that do give support

 

Your not allowed to modify or reverse engineer either but wtf is Epoch Modified arma2 some people should just shut the fuck up

Just like Antihax that people rip u off with what they sell only seem to fuk ur server more then stop the hax

all just stolen code anyway then modified so they can claim it as their own BS

 

well i might have woke up on the wrong side of the bed but thats my opinion that im entitled to........   

Link to comment
Share on other sites

It really isn't illegal unless you check his store and he just has an item mall. It also might not have any other advantages besides maybe a location rather than items or gear that wouldn't be accessible to other players without donations. So unless you see his store which you might he might be ok, but if not SWING THE BAN HAMMER.

Link to comment
Share on other sites

  • 1 month later...

How do I go about adding the location when I use single currency?
Do I add them in the mission.sqm?

                class Item70
                {
                    position[]={20387.123,0.15439001,-5039.583};
                    azimut=-17.0839;
                    id=65;
                    side="WEST";
                    vehicle="Survivor1_DZ";
                    player="PLAY CDG";
                    skill=0.60000002;
                    init="this enableSimulation false;this allowDammage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";

^^^ All above obviously would be customized to the characteristics/details of my "VIP" trader, as they are not yet.

 

My mission.pbo doesn't have a mission.sqf, but I found one off the web of nets for customizing traders.

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...