Jump to content

starter pack


Ghostman

Recommended Posts

You can add start money for new players by changing some code in server_playerLogin.sqf.

  Reveal hidden contents
Source: @salival's ZSC instructions: https://github.com/oiad/ZSC
Link to comment
Share on other sites

@Ghostman

 

1-open your  server_playersetup.spf

find this line:

PVCDZ_plr_Login2 = [_worldspace,_state];

replace by:

PVCDZ_plr_Login2 = [_worldspace,_state,_randomSpot];

save, and repack your pbo.

2-At bottom of init.sqf paste:

startkit = compile preprocessFileLineNumbers "startkit.sqf";
waitUntil {!isNil ("PVDZ_plr_LoginRecord")};
if (PVCDZ_plr_Login2 select 2) then
{
    player spawn startkit;
};

3-create startkit.sqf (mpmissions\your instance\ )

startkit.sqf

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 6/11/2017 at 5:31 PM, juandayz said:

@Ghostman

 

1-open your  server_playersetup.spf

find this line:

PVCDZ_plr_Login2 = [_worldspace,_state];

replace by:

PVCDZ_plr_Login2 = [_worldspace,_state,_randomSpot];

save, and repack your pbo.

2-At bottom of init.sqf paste:

startkit = compile preprocessFileLineNumbers "startkit.sqf";
waitUntil {!isNil ("PVDZ_plr_LoginRecord")};
if (PVCDZ_plr_Login2 select 2) then
{
    player spawn startkit;
};

3-create startkit.sqf (mpmissions\your instance\ )

startkit.sqf

  Reveal hidden contents

 

Expand  

I'm sorry for the late reply but unfortunately this script does not work

Link to comment
Share on other sites

  On 6/13/2017 at 10:19 PM, Ghostman said:

in server_playersetup.spf

PVCDZ_plr_Login2 = [[0,respawn_west_original],_state,_worldspace,_randomSpot,([_randomSpot,_playerID] call spawn_config)];

and sarver can't run 119 sec server to start .....

Expand  

well now i see youre using ESSV3... this change the things

Link to comment
Share on other sites

  On 6/13/2017 at 10:38 PM, Ghostman said:

yes i am using essv3, but your script spawn box only for new players on scroll mouse or near player when they spawn on ground?

Expand  

for fresh spawns.. they die.. they have a crate.  If they log out and relog again then dsnt have a crate.

Why you just not use the loadout and config class from ESSV3?

Link to comment
Share on other sites

the one that i give you works, but with out essv3 im using it... but you need change the part in init cuz select 2 is not _randSpot if u use ESsv3

im fixing other thing.. when i fininish gonna install essv3 and give a try with this

Link to comment
Share on other sites

  On 6/13/2017 at 11:03 PM, Ghostman said:

no problem and thx for your help

Expand  

ok my friend this is what i wrote for you.. i made some tests and works fine. If u see that meet your expectations please post in arma2/mod forums for everyone.

**Note: its only for user of ESSV3

1-You will need open your init.sqf  and at very very very bottom paste:

waitUntil {!isNil ("PVDZ_plr_LoginRecord")};
if (PVCDZ_plr_Login2 select 3) then
{

_text = "Claim My Box";
s_player_box = player addAction [format["%1",_text], "scripts\player_startkit.sqf"];	
};

2- into mpmissions\the instance that youre using\scripts\    create this file:

player_startkit.sqf  (customize the options and the loot at your taste)

  Reveal hidden contents

3-open your custom variables.sqf

  Reveal hidden contents

Remember suicide you until test it.. cuz only fresh spawns are allowed to spawns crates.

Link to comment
Share on other sites

well back to the reallity: @Ghostman  2 ways are better than 2.. here you got:

 

  Reveal hidden contents

 

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 1 month later...
  On 6/14/2017 at 4:10 AM, juandayz said:

well back to the reallity: @Ghostman  2 ways are better than 2.. here you got:

 

  Reveal hidden contents

 

  Reveal hidden contents

 

Expand  

What about somehow tying the starter kit somehow to the player Id once they have claimed it. I was just testing this out and I relogged on my test server and now I don't have the option.

This way if we can somehow tie it to the player ID, they can at least come back later if they haven't found a spot yet to claim the kit.

Link to comment
Share on other sites

  On 8/3/2017 at 6:31 PM, JohnnyBravo666 said:

What about somehow tying the starter kit somehow to the player Id once they have claimed it. I was just testing this out and I relogged on my test server and now I don't have the option.

This way if we can somehow tie it to the player ID, they can at least come back later if they haven't found a spot yet to claim the kit.

Expand  

I do this on my server using extDB, on player login I run a query to see if the player has gotten their start kit yet, if not I addaction for the starterkit script.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...