new mypickup[2];
OnGameModeInIt mypickup[0] = CreatePickup(... mypickup[1] = CreatePickup(...
OnPlayerPickupPickUp if(pickupid == mypickup[0]) { ... } else if(pickupid == mypickup[1]) { ... }