gms_team_player_get

Usage: gms_team_player_get ( team_id, n )

Description

Returns the n'th player in the given team.

Example

//Shows all the players in team '1'
var n, player_id, name;
for(n = 0; n < gms_team_player_count(1); n += 1)
{
    player_id = gms_team_player_get(1, n)
    name = gms_other_get_string(player_id, "name");
    show_message(name);
}

Replies (0)

Last message on 24 Apr 2017