PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

SetAccountAge

The SetAccountAge function sets the Player/AccountAge of the player in days.

It is used to set the Player property that describes how long ago a player’s account was registered in days.

This does not set the age of the player on the account, but the age of the account itself relative to when it was first created.

Parameters

Name Type Default Description
int

The age of the account in days.

Returns

Return Type Summary

No return.


Code Samples


Setting the Player's Account Age

This example demonstrates how the Player/SetAccountAge function would be used if it was accessible. It sets the local player’s account age to 100 days.


Account Age Mark

This code sample adds a mark to players showing about how old their account is. The mark uses a player’s account age to determine if they are a New Player, Veteran Player or Regular Player.