07.06.2015, 11:06
Create dynamic pickups only once (in OnGameModeInit) and show/hide them for a player using:
pawn Код:
// visible pickups for player
for (new i; i != sizeof (KartNos); ++i) Streamer_AppendArrayData(STREAMER_TYPE_PICKUP, KartNos[i], E_STREAMER_PLAYER_ID, playerid);
for (new j; j != sizeof (KartBoost); ++j) Streamer_AppendArrayData(STREAMER_TYPE_PICKUP, KartBoost[j], E_STREAMER_PLAYER_ID, playerid);
// not visible pickups for player
for (new i; i != sizeof (KartNos); ++i) Streamer_RemoveArrayData(STREAMER_TYPE_PICKUP, KartNos[i], E_STREAMER_PLAYER_ID, playerid);
for (new j; j != sizeof (KartBoost); ++j) Streamer_RemoveArrayData(STREAMER_TYPE_PICKUP, KartBoost[j], E_STREAMER_PLAYER_ID, playerid);