xboxlive_user_is_active

With this function you can check whether the given user ID is in the list of users currently using the console, and the function will return true if they are, or false otherwise. You can get a User ID pointer with the function xboxlive_get_user().

 

 

Syntax:

xboxlive_user_is_active(user_id);

Argument Description
user_id The ID pointer of the user to check.

 

Returns:

Boolean

 

Example:

global.PlayerNum = 0;
global.Player_ID = array_create();
for(var i = 0; i < xboxlive_get_user_count(); ++i;)
    {
    var _uid = xboxlive_get_user(i);
    if xboxlive_user_is_active(_uid)
        {
        global.Player_ID[global.PlayerNum++] = _uid;
        }
    }

The above code loops through the user accounts and then checks to see if any of them are active. If they are, their user ID is added into a global array.