This wiki is archived and useful information is being migrated to the main bzflag.org website
Bz APIIntList
From BZFlagWiki
An array of integers. This is used for passing lists of integers from the BZFS API itself to the plugin that uses the API.
Usage
bz_APIIntList *playerList = bz_newIntList(); bz_getPlayerIndexList(playerList); int i; for (i=0;i<playerList->size();i++) { // Use (*playerlist)[i] to grab the integer. bz_sendTextMessage(BZ_SERVER,(*playerlist)[i],"Welcome to the server!"); } bz_deleteIntList(playerList);