Jump to content
  • 0

Detecting new players


Buck0

Question

I know it can be done, im looking at automating a starter kit for our players.

Im looking for it to detect new players who login. So i can write up something automating the delivery of these kits.

Does anyone know the variable?

Im also aware once a restart occurs this information is wiped and they are no longer considered new players

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

I'm not sure what you mean. I think there actually is no variable for this, but multiple solutions using hive calls. I'm pretty sure there there is a hive call to gather character Information and Generation, check server player setup tho. If the result returns nothing the player is new to the server.

Link to comment
Share on other sites

  • 0

Look, what i found in server_playerLogin.sqf

dayzPlayerLogin = [_charID,_inventory,_backpack,_survival,_isNew,dayz_versionNo,_model,_isHiveOk,_newPlayer,_isInfected];
(owner _playerObj) publicVariableClient "dayzPlayerLogin";

That's your solution mate :)

Basically "_newPlayer" returns bolean, true or false. So you can ask locally ->

waitUntil {!isNil dayzPlayerLogin};
waitUntil {count dayzPlayerLogin > 0};

private [_arrElement];
_arrElement = dayzPlayerLogin select 8;

if (_arrElement) then {
//IS NEW PLAYER
};
Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...