xboxlive_sponsor_for_user

This function retrieves the ID of the given users sponsor.

 

Syntax:

xboxlive_sponsor_for_user(user_id);

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

 

Returns:

Real

 

Example:

var _uid = xboxlive_user_for_pad(0);
sponsor = xboxlive_sponsor_for_user(_uid);

The above code gets the user ID pointer for the user assigned to the gamepad [0] slot, and then uses that ID to retrieve the users sponsor ID.